Iis – localhost works 127.0.0.1 does not IIS

iislocalhost

Very weird problem on IIS. Never had it before:

localhost works, but 127.0.0.1 does not. localhost pings to 127.0.0.1. www.mydomain.com also pings to that IP, which is set up in the hosts file, but that also doesnt work locally. I've ipconfig /flushdns 'd without success. Ive even restarted the server. Another server set up the exact same way works fine. Any ideas?

To be clear, im accessing the URLs in IE like this:

I can telnet to port 80 without a problem for all 3

Best Answer

I have seen this a few times and it is usually caused by an incorrect proxy server configuration. If you can access it via telnet (this would not be going via the proxy) then you have effectively verified that a service of some kind (not necessarily IIS!) is running on that port.

I recommend disabling the auto-detect proxy option if you are using Internet Explorer and are not using a proxy or if you must use a proxy add explicit declarations for exceptions rather than relying on the "Bypass Proxy for Local Addresses" checkbox.

Related Topic