{"id":1999,"date":"2017-10-31T20:13:44","date_gmt":"2017-10-31T20:13:44","guid":{"rendered":"http:\/\/obieta.com\/?p=1999"},"modified":"2017-10-31T20:13:44","modified_gmt":"2017-10-31T20:13:44","slug":"iis-website-is-only-listening-on-127-0-0-1-and-not-ip-address","status":"publish","type":"post","link":"https:\/\/obieta.com\/?p=1999","title":{"rendered":"IIS website is only listening on 127.0.0.1 and not IP address"},"content":{"rendered":"<div class=\"article-content \">\n<p>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:<\/p>\n<pre>netstat -an<\/pre>\n<p>I noticed I had an entry for port 80 for 127.0.0.1, but not for my actual IP address\u2014nor for 0.0.0.0:80, which would be all IP addresses:<\/p>\n<pre>TCP 127.0.0.1:80 0.0.0.0:0 LISTENING<\/pre>\n<p>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.<\/p>\n<pre>C:\\&gt;netsh\nnetsh&gt;http\nnetsh http&gt;show iplisten\n\nIP addresses present in the IP listen list:\n-------------------------------------------\n\n127.0.0.1\n\nnetsh http&gt;add iplisten ipaddress=100.76.72.126\n\nIP address successfully added\n\nnetsh http&gt;show iplisten\n\nIP addresses present in the IP listen list:\n-------------------------------------------\n\n127.0.0.1\n100.76.72.126\n\nnetsh http&gt;exit\n\n\nC:\\&gt;iisreset\n\nAttempting stop...\nInternet services successfully stopped\nAttempting start...\nInternet services successfully restarted\n\nC:\\&gt;netstat -an\n\u00a0TCP 100.76.72.126:80 0.0.0.0:0 LISTENING\n\u00a0TCP 127.0.0.1:80 0.0.0.0:0 LISTENING\n<\/pre>\n<p>Another approach would have been to\u00a0<em>remove\u00a0<\/em>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\u00a0be my preferred approach):<\/p>\n<pre>C:\\&gt;netsh\nnetsh&gt;http\nnetsh http&gt;show iplisten\n\nIP addresses present in the IP listen list:\n-------------------------------------------\n\n127.0.0.1\n100.76.72.126\n\nnetsh http&gt;remove iplisten ipaddress=127.0.0.1\nThe following command was not found: remove iplisten ipaddress=127.0.0.1.\nnetsh http&gt;del iplisten ipaddress=127.0.0.1\n\nIP address successfully deleted\n\nnetsh http&gt;del iplisten ipaddress=100.76.72.126\n\nIP address successfully deleted\n\nnetsh http&gt;exit\n\n\nC:\\&gt;iisreset<\/pre>\n<\/div>\n<div id=\"comments-75403\" class=\"comments-wrapper\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>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, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/obieta.com\/index.php?rest_route=\/wp\/v2\/posts\/1999"}],"collection":[{"href":"https:\/\/obieta.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/obieta.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/obieta.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/obieta.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1999"}],"version-history":[{"count":0,"href":"https:\/\/obieta.com\/index.php?rest_route=\/wp\/v2\/posts\/1999\/revisions"}],"wp:attachment":[{"href":"https:\/\/obieta.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1999"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/obieta.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1999"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/obieta.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1999"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}