Home Home    Forum    Blog    Feed your aggregator (RSS 2.0)

The Johnnynine Weblog - IIS 7 and .NET WCF stop responding to localhost, 127.0.0, and [::1] requests
A weblog by Johnny Hughes
 
 Friday, May 22, 2009

My Vista IIS 7 box recently stopped listening on the localhost ip addresses for no apparent reason.  I don’t know how this happened but I eventually found the solution.

I ran across the following command line that lists all the ip addresses that IIS is listening on (but I'm not sure how this differs from the IIS web site bindings):

netsh http show iplisten

This showed one ip address, which was my machine's ip address.

I ran this command on another vista pc that was working and it returned an empty list.

I then ran the following command line to remove the rouge ip address from the list:

netsh http delete iplisten ipaddress=192.1.1.123

Once I removed the ip address so the list was empty (which is what I have on another vista machine for comparison), localhost started working again.

 

FYI: This also applied to .NET WCF endpoints.

 

I believe the httpcfg command can do the same in older Windows OS versions.

Friday, May 22, 2009 1:03:06 AM (US Mountain Standard Time, UTC-07:00)  #    Comments [0]   Fixes | Technical  | 
Name
E-mail
(will show your gravatar icon)
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):

Copyright © 2010 Johnny Hughes. All rights reserved.
DasBlog 'Portal' theme by Johnny Hughes.