Binding IISExpress to IP Address Failing

别说谁变了你拦得住时间么 提交于 2019-12-04 12:09:56

问题


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:


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.



来源:https://stackoverflow.com/questions/34070198/binding-iisexpress-to-ip-address-failing

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!