Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm having a weird problem accessing a local web site.

Web site is mapped to a hostname e.g. The hostname works perfectly on any external machine, but not locally.

When trying to access the hostname locally or try and access localhost, the browser just hangs.

This is the hosts file

# localhost name resolution is handled within DNS itself.       localhost
#   ::1             localhost

Any idea what this could be?

share|improve this question
what IP is returned when you ping the hostname from the machine? Does it match the IP if you do it from an external system that works? Your IIS binding is probably not setup to listen on which would explain why localhost doesn't work. – MattB Dec 9 '10 at 15:17
up vote 1 down vote accepted

You need to simplify the problem. A couple major things to check:

  1. netstat -an -> Are you listening to
  2. telnet to the port -> bypass browser and proxy config problems
  3. URL should be http:/ -> Bypass name resolution

If it still doesn't work, check your web server config. There are several ways IIS can be configured to not work in this situation.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.