Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

Web site is mapped to a hostname e.g. example.org 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.
    127.0.0.1       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 127.0.0.1 which would explain why localhost doesn't work. –  MattB Dec 9 '10 at 15:17

1 Answer 1

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 127.0.0.1?
  2. telnet to the port -> bypass browser and proxy config problems
  3. URL should be http:/127.0.0.1/ -> 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

 
discard

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.