Wednesday 5 September 2007

Proxy servers and loopback addresses

Have a small issue to note when setting up Tomcat and a small web app on my home PC tonight.

Was trying to access this URL: http://localhost:8080/manager in IE but it was giving me an internal server error. If I changed it to http://127.0.0.1:8080/manager it worked fine. First thing to check is my hosts file:

127.0.0.1 localhost

Yep, no dramas there. Hmm. What about Firefox? Works for both localhost and 127.0.0.1. Strange. Then something triggers my memory, I remember setting up IE to use a proxy server when I was doing some security testing of the surveymonkey.com site (for fun). So I get rid of that proxy connection and everything works as it should.

I was under the impression that the host file mappings (and thus the loopback address) would be looked at and resolved *prior* to leaving my box, rather than going out through the proxy server first? Something to read about I think.


Powered by ScribeFire.