It is currently Thu Feb 23, 2012 3:19 am




 Page 1 of 1 [ 6 posts ] 
Author Message
 Post subject: Can't access 127.0.0.1 on port 80
PostPosted: Thu Jun 09, 2011 9:38 am 
Newbie
Newbie

Joined: Thu May 07, 2009 7:25 pm
Posts: 6
I'm trying to setup a web site in IIS that has some components hard coded to use 127.0.0.1 on the server (don't ask!). However, I don't seem to be able to browse this server using http://127.0.0.1 and I can't figure out why.

I have 3 load balanced servers in an array and can browse to http://127.0.0.1 no problem - but not this one. It's almost as if IIS isn't listening on that IP, yet I can ping it and it responds.

I've Googled this for some time but can't find an answer that resolves the issue so all suggestions welcome please!


Offline
 Profile  
 
 Post subject: Re: Can't access 127.0.0.1 on port 80
PostPosted: Mon Jun 27, 2011 7:54 pm 
Site Admin
Site Admin
User avatar

Joined: Mon Feb 09, 2009 1:31 pm
Posts: 193
Location: Newport, South Wales
Hi Caz.

Sorry for the late reply - the forum has been broken for a few days (as you probably noticed).

Have you resolved this issue yet? If not have you tried running netstat -an from a command line? This should give some useful output to see what IP addresses and ports the server is listening on.

Dave



_________________
Dave Webb
Windows 2008 Forums
Offline
 Profile  
 
 Post subject: Re: Can't access 127.0.0.1 on port 80
PostPosted: Thu Jun 30, 2011 7:05 am 
Newbie
Newbie

Joined: Thu May 07, 2009 7:25 pm
Posts: 6
No, this hasn't been resolved (it isn't urgent so haven't spent a lot of time on it). I looked at the netstat output and couldn't see it listening on port 80 on 127.0.0.1


Offline
 Profile  
 
 Post subject: Re: Can't access 127.0.0.1 on port 80
PostPosted: Thu Jun 30, 2011 9:05 am 
Established member
Established member
User avatar

Joined: Tue Jun 02, 2009 11:11 am
Posts: 36
Location: Northampton
What IP addresses are configured in the bindings for this site - all unassigned?


Offline
 Profile  
 
 Post subject: Re: Can't access 127.0.0.1 on port 80
PostPosted: Thu Jun 30, 2011 8:48 pm 
Windows 2008 Enthusiast
Windows 2008 Enthusiast
User avatar

Joined: Wed Mar 04, 2009 6:48 pm
Posts: 59
Location: Birmingham
Caz,

From a command prompt run these commands (one at a time):

netsh
http
show iplisten

This will show you what IP addresses are in use. If you don't see 127.0.0.1 then you can use this command to add it:

add iplisten 127.0.0.1


You may need to restart IIS but this should solve the problem


Offline
 Profile  
 
 Post subject: Re: Can't access 127.0.0.1 on port 80
PostPosted: Mon Jul 04, 2011 8:01 am 
Newbie
Newbie

Joined: Thu May 07, 2009 7:25 pm
Posts: 6
Cocker you're a star, that was it. Thank you for the help everyone.


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 6 posts ] 


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

cron