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
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.
It sounds to me like a Named Virtual Hosting problem. Basically I think the problem is that you didnt' create virtual hosts for the other hostnames(in this context, an IP address qualifies). I'm not super familiar with IIS, but in apache, this is exactly what you are describing. The answer would be to disable virtual hosting.
The telnet 80 questions you get aren't complete. telnet to the IP address and run these commands(you'll have to do it three times)
it should give you the index page back, and it should be the same in all cases