将IISExpress绑定到IP地址失败

将IISExpress绑定到IP地址失败,iis,iis-express,Iis,Iis Express,在Win8、Win8.1和Win10中,我在同一个Windows框中使用了此功能。昨天我执行了阈值2升级到Windows 10,现在我无法在IISExpress中启动API 绑定的设置如下所示: <binding protocol="http" bindingInformation="*:51258:jamhq" /> <binding protocol="http" bindingInformation="*:51258:192.168.0.8" /> Failed

在Win8、Win8.1和Win10中,我在同一个Windows框中使用了此功能。昨天我执行了阈值2升级到Windows 10,现在我无法在IISExpress中启动API

绑定的设置如下所示:

<binding protocol="http" bindingInformation="*:51258:jamhq" />
<binding protocol="http" bindingInformation="*:51258:192.168.0.8" />
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)
我可以ping这个IP(显然是因为我自己ping),我可以从我的其他机器/设备ping这个位置

似乎某些极低级别的网络设置已被更改


有人见过这个问题或有解决方案吗?

所以,这可能会在将来帮助其他人,我今天一直在反复讨论这个问题,刚刚解决了这个问题

更新似乎会删除http.sys正在侦听的IP地址。因此,在执行时:

netsh http show iplisten
netsh http add iplisten 192.168.0.8
更新后我仅有的条目是:

::
因此,执行:

netsh http show iplisten
netsh http add iplisten 192.168.0.8

答对了,一切都恢复正常。

您对网络设置做了什么特别的操作吗?我再次尝试设置,但仍然无法通过本地IP从我的任何其他机器/设备访问我的站点。没关系,使用本文解决了这个问题:什么为您修复了它?除了使用答案中的命令修复丢失的IP侦听条目之外,我没有对网络设置做任何特别的事情。本文第二部分中的两个
netsh
命令:1)
netsh http add urlac url=http://192.168.1.42:58938/ 用户=所有人
2)
netsh advfirewall firewall add rule name=“IISExpressWeb”dir=in protocol=tcp localport=58938 profile=private remoteip=localsubnet action=allow
当然,已更正IP、端口和防火墙规则名称,以符合我自己的设置。