Link to home
Start Free TrialLog in
Avatar of jentel2
jentel2

asked on

Can't connect to localhost on IIS 6.0

Using Windows 2003 and IIS 6.
I can't connect to the default web site.

The website is running under IIS manager.
In IE, I get entries for 'localhost' coming from search.msn.com and Firefox gives 'Firefox can't establish a connection to the server at localhost' error.

Other websites on IIS work fine. I have an entry for localhost in hosts file pointing to 127.0.0.1.  I can ping localhost. I have 'All unassigned' for the ip address in IIS manager.

I am running out of ideas on the cause of this issue.

Avatar of BardMorgan
BardMorgan

Ok, you can ping localhost, so the address is resolving correctly (I assume that when you ping it, you get 127.0.0.1 as the resolved address?  If not, that's your problem.)
The only thing it could be is that your default web site is either not running or that it's not running on port 80.
Now, the web site not running is not the same as IIS itself not running.  In the IIS manager, you can actually stop a web site (including the default site) without stopping IIS.
Check to see if the web site is running and what port it's running under.  If it's running under something other than port 80, change the URL to http://localhost:8080 (for example, if it's running on port 8080).
Morgan
Avatar of jentel2

ASKER

localhost pings to 127.0.0.1

In IIS manager, the default web site is running because it doesn't have the word 'stopped' plus I get 'stop' and 'pause' options.

it's running on port 80.

What causes localhost to be mapped to the default website? Maybe that entry is missing.
or some entry that IIS manager doesn't show.




Hmm.. ok.. is it set to use the DefaultAppPool?  If so, is that App pool stopped?  I assume the World Wide Web Publishing Service is started.  
The mapping is handled by the Advanced Web Site Identification dialog (the same place you set the "All Unassigned" addresses).  Do you have anything under the "Host veader value" colum for the default IP address?  Do you have more than one entry in the list?
Avatar of jentel2

ASKER

The pool is running. I switched to another pool. Same problem.

That dialog has a single default entry. It's not clear from that dialog that localhost is directed to the default web site. It has no localhost as host header unless IIS/Windows does it internally.

Avatar of Praveen DM
1. Right click Default Site and --> Permissions
2. Check if the admin,systems, Network Service , IUR_Machinename, has appropriate permissions set.
3. Open Inetmgr and set all unassigned .

in browser did u try

1. http://localhost/anypage_within  ( If you dont mind try to access some image or txt file in IIS in browser first ?

2. http://127.0.0.1/same as above..

3. Open Inetmgr and tryu to browse the image file from IIS itself... ( Rt click the Image in IIS and you can see "BROWSE"
cmd>telnet localhost 80    ( Listns ? )

cmd>telnet 127.0.0.1 80 (Lisnt ?)
Avatar of jentel2

ASKER


I can't browse or telnet to 127.0.0.1 or localhost. I can only ping  it.
ASKER CERTIFIED SOLUTION
Avatar of jentel2
jentel2

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial