Binding IISExpress to IP Address Failing

2019-03-20 06:58发布

I've had this working on the same Windows box in Win8 Win8.1 and Win10. Yesterday I performed the Threshold 2 upgrade to Windows 10 and now I can't launch my API in IISExpress.

The bindings are setup like this:

<binding protocol="http" bindingInformation="*:51258:jamhq" />
<binding protocol="http" bindingInformation="*:51258:192.168.0.8" />

I've triple checked all my netsh settings and at the moment Windows Firewall is completely disabled whilst I troubleshoot.

Every time I try to launch this I'm now presented with an error like this:

Failed to register URL "http://192.168.0.8:51258/" for site "<name>" application "/"
Error Description: The Network location cannot be reached.
For more information ... (0x800704d0)

I can ping this IP (obviously since I'm pinging myself), I can ping this location from my other machines / devices.

It seems like some extremely low level network setting has been changed.

Has anyone seen this problem or have a solution?

1条回答
相关推荐>>
2楼-- · 2019-03-20 07:37

So, this is something that might help others in the future, I've been going round and round on this problem today and have just fixed the issue.

It appears that the update removes IP addresses that the http.sys is listening on. So when executing:

netsh http show iplisten

The only entry I had after the update was:

::

So executing:

netsh http add iplisten 192.168.0.8

Bingo, everything is now working again.

查看更多
登录 后发表回答