Solve IIS Listener Problems

Solve the IP addresses used by IIS.

John Savill

August 4, 2014

1 Min Read
IP address

Q: My IIS website is only listening on 127.0.0.1 and not my real IP address; how do I fix this?

A: I recently had this problem, and even after ensuring that the bindings for the website were linked to all unassigned addresses, I could still only connect via the loopback address, 127.0.0.1. The first troubleshooting step was to look at all listeners using:

netstat -an

I noticed I had an entry for port 80 for 127.0.0.1, but not for my actual IP address—nor for 0.0.0.0:80, which would be all IP addresses:

TCP 127.0.0.1:80 0.0.0.0:0 LISTENING

The next step was to look at the actual HTTP IP listeners. Because I only had an IP present for 127.0.0.1, I added a listener for my real IP address and performed an IIS reset. I then had a listener on 127.0.0.1 and my physical IP address, and I could connect to the server via the IP address.

C:>netshnetsh>httpnetsh http>show iplistenIP addresses present in the IP listen list:-------------------------------------------127.0.0.1netsh http>add iplisten ipaddress=100.76.72.126IP address successfully addednetsh http>show iplistenIP addresses present in the IP listen list:-------------------------------------------127.0.0.1100.76.72.126netsh http>exitC:>iisresetAttempting stop...Internet services successfully stoppedAttempting start...Internet services successfully restartedC:>netstat -an TCP 100.76.72.126:80 0.0.0.0:0 LISTENING TCP 127.0.0.1:80 0.0.0.0:0 LISTENING

Another approach would have been to remove the 127.0.0.1 listener so there were no explicit IP addresses configured for the HTTP, which would have meant it would have listened on all IP addresses (this would actually be my preferred approach):

C:>netshnetsh>httpnetsh http>show iplistenIP addresses present in the IP listen list:-------------------------------------------127.0.0.1100.76.72.126netsh http>remove iplisten ipaddress=127.0.0.1The following command was not found: remove iplisten ipaddress=127.0.0.1.netsh http>del iplisten ipaddress=127.0.0.1IP address successfully deletednetsh http>del iplisten ipaddress=100.76.72.126IP address successfully deletednetsh http>exitC:>iisreset

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like