Whenever I am trying to configure a website to bind on 127.0.0.1, IIS refuses to bind website on it and runs the site on other IP addresses configured in server.
Please see below.
================================
C:\Windows\System32\inetsrv>appcmd list site | findstr 9003
SITE "WebsitePanel Server" (id:5,bindings:http/127.0.0.1:9003:,http/[::1]:9003:,state:Started)
Website running on localhost is usually used by applications that want to restrict access of that application to localhost.
I my case, the application running on port 9003 is used by a hosting control panel named "webpanel". This webpanel is attempting to connect to 127.0.0.1:9003.
I verified that IIS 7 can indeed configure a website on 127.0.0.1:xxx, where xxx is the port. However, IIS 7 obviously misbehaves here due to some reason.
It is very confusing since configuration is correct on front end and IIS just switches to another IPs when we start website.
Also, this setup was working well until recently and it just stopped working all of a sudden.
Whenever I am trying to configure a website to bind on 127.0.0.1, IIS refuses to bind website on it and runs the site on other IP addresses configured in server.
Sorry for unabling to grasp your question. But I guess you were binding the same ip and port to the web site. That may make IIS refuse this bingdins. You can set the bindings with the same ip address, but the port shoul not be same. Or set the bindings witht
the different ip address and the same port.
Please mark the replies as answers if they help or unmark if not.
Feedback to us
>> But I guess you were binding the same ip and port to the web site. That may make IIS refuse this bingdins. You can set the bindings with the same ip address, but the port shoul not be same. Or set the bindings witht the different ip address and the same
port.
This was not the case. I didn't try to bring 2 sites on same ip/port combination.
It is a problem with loop back interface. issue is like this.
I have following unassigned IPs.
192.168.1.5
192.168.1.6
192.168.1.7
When I configure a website with 127.0.0.1:9003, it works on front end. When I restart, I would see that 9003 is bound to 192.168.1.5, 192.168.1.6 & 192.168.1.7, and not 127.0.0.1
It is confusing & I am not getting any clue into what is going wrong
crucialsuppo...
5 Posts
IIS websites refuses to bind on 127.0.0.1
May 02, 2012 07:42 AM|LINK
Hi,
I have a problem.
Whenever I am trying to configure a website to bind on 127.0.0.1, IIS refuses to bind website on it and runs the site on other IP addresses configured in server.
Please see below.
================================
C:\Windows\System32\inetsrv>appcmd list site | findstr 9003
SITE "WebsitePanel Server" (id:5,bindings:http/127.0.0.1:9003:,http/[::1]:9003:,state:Started)
C:\Windows\System32\inetsrv>netstat /ano | findstr "9003"
TCP 192.168.1.5:9003 0.0.0.0:0 LISTENING 4
TCP 192.168.1.6:9003 0.0.0.0:0 LISTENING 4
================================
Can anyone please share any thtoughts into what might be the problem.
--
sherin
Patrick1972
253 Posts
Re: IIS websites refuses to bind on 127.0.0.1
May 02, 2012 12:28 PM|LINK
Sherin,
What are you trying to establish? Binding a site to your internal loopback address is not going to work, you have to use private/public ip addresses.
crucialsuppo...
5 Posts
Re: IIS websites refuses to bind on 127.0.0.1
May 04, 2012 02:38 AM|LINK
Patrick,
Thanks for taking time to review this post.
Website running on localhost is usually used by applications that want to restrict access of that application to localhost.
I my case, the application running on port 9003 is used by a hosting control panel named "webpanel". This webpanel is attempting to connect to 127.0.0.1:9003.
I verified that IIS 7 can indeed configure a website on 127.0.0.1:xxx, where xxx is the port. However, IIS 7 obviously misbehaves here due to some reason.
It is very confusing since configuration is correct on front end and IIS just switches to another IPs when we start website.
Also, this setup was working well until recently and it just stopped working all of a sudden.
--
sherin
Mamba Dai - ...
651 Posts
Microsoft
Re: IIS websites refuses to bind on 127.0.0.1
May 08, 2012 08:37 AM|LINK
Hi,
Sorry for unabling to grasp your question. But I guess you were binding the same ip and port to the web site. That may make IIS refuse this bingdins. You can set the bindings with the same ip address, but the port shoul not be same. Or set the bindings witht the different ip address and the same port.
Feedback to us
Develop and promote your apps in Windows Store
crucialsuppo...
5 Posts
Re: IIS websites refuses to bind on 127.0.0.1
May 15, 2012 05:05 AM|LINK
>> But I guess you were binding the same ip and port to the web site. That may make IIS refuse this bingdins. You can set the bindings with the same ip address, but the port shoul not be same. Or set the bindings witht the different ip address and the same port.
This was not the case. I didn't try to bring 2 sites on same ip/port combination.
It is a problem with loop back interface. issue is like this.
I have following unassigned IPs.
192.168.1.5
192.168.1.6
192.168.1.7
When I configure a website with 127.0.0.1:9003, it works on front end. When I restart, I would see that 9003 is bound to 192.168.1.5, 192.168.1.6 & 192.168.1.7, and not 127.0.0.1
It is confusing & I am not getting any clue into what is going wrong
--
sherin
crucialsuppo...
5 Posts
Re: IIS websites refuses to bind on 127.0.0.1
May 16, 2012 08:49 AM|LINK
Hi,
I got solution. The issue is related to the kb: http://support.microsoft.com/kb/954874
--
sherin
Patrick1972
253 Posts
Re: IIS websites refuses to bind on 127.0.0.1
May 16, 2012 08:53 AM|LINK
Super and thanks for sharing. I didnt remember the netsh option.
At the end, did you bound the site to the loopbackadress?
B reg
crucialsuppo...
5 Posts
Re: IIS websites refuses to bind on 127.0.0.1
May 16, 2012 09:36 AM|LINK
yes :)