我有从Visual Studio 2017年我的本地主机上的Windows 10错误的请求 - 当访问本地主机的Web API或Web应用程序来自全国各地LAN
运行ASP.NET的核心网络1.1 API和Web应用程序无效主机名当我运行该项目,在API上http://localhost:50082/api/运行,但是,如果别人在局域网上尝试访问它(使用我的电脑的IP地址http://localhost:60856/
的Web应用程序 - http://192.168.1.101:60856/他们得到
错误的请求 - 无效的主机名
错误。事实上,。我也使用我的IP地址得到这个错误。我试了一下在我的C一打变化:\用户\文档\ IISExpress \ CONFIG \ ApplicationHost.config文件,如:
<bindings>
<binding protocol="http" bindingInformation="*:60856:localhost" />
</bindings>
和
<bindings>
<binding protocol="http" bindingInformation="*:60856:" />
</bindings>
重启项目(和因此IIS Express),但似乎没有任何工作。有任何想法吗?
我也关掉我的防火墙,并没有任何第三方反病毒运行... – user1900799