C# 如何在windows 10操作系统下通过IP地址运行visual studio 2017 API项目,我面临很多问题
我必须尝试很多解决方案,但没有人能解决我的问题,我需要在IP地址运行我的visual studio API项目(如C# 如何在windows 10操作系统下通过IP地址运行visual studio 2017 API项目,我面临很多问题,c#,asp.net-mvc,visual-studio,windows-10,ip-address,C#,Asp.net Mvc,Visual Studio,Windows 10,Ip Address,我必须尝试很多解决方案,但没有人能解决我的问题,我需要在IP地址运行我的visual studio API项目(如192.168.1.8:7832/),但同时这个项目在localhost:7832中也能正常工作 我必须遵循以下步骤 像这样更改我的applicationhost.config文件 <bindings> <binding protocol="http" bindingInformation="*:1407:192.168.1.8" /> </bind
192.168.1.8:7832/
),但同时这个项目在localhost:7832
中也能正常工作
我必须遵循以下步骤
applicationhost.config
文件
<bindings>
<binding protocol="http" bindingInformation="*:1407:192.168.1.8" />
</bindings>
希望这有帮助 我收到了相同的服务不可用错误。这是由于编辑错误造成的 我实际上是在编辑IIS Express的
applicationhost.config
,它位于Documents->IISExpress->config中
需要编辑的实际文件位于项目文件夹->.vs->config中。.vs是一个隐藏的文件夹。您对此有任何解决方案吗?没有,尚未收到任何解决方案。如果我的解决方案对您有效,您可以接受!或者用评论更新@Raja,您找到解决方案了吗?您的答案是针对IIS服务器的,但Visual Studio 2017使用IIS Express。
netsh advfirewall firewall add rule name="IISExpressWeb" dir=in protocol=tcp localport=1234 profile=private remoteip=localsubnet action=allow