gpt4 book ai didi

visual-studio - 在本地网络中使用 Visual Studio Web 服务器

转载 作者:行者123 更新时间:2023-12-03 23:33:01 24 4
gpt4 key购买 nike

有没有办法从共享同一路由器的另一台计算机访问 Visual Studio Web 服务器?我尝试连接到 IP 地址,但没有成功。 VS里面有设置吗?还是防火墙?

最佳答案

您可以通过安装 IIS Express 来实现这一点。


http://www.microsoft.com/en-us/download/details.aspx?id=1038



安装后,将您的项目设置更改为:
Project Settings

然后去

%userprofile%\Documents\IISExpress\config\applicationhost.config



对于项目,将绑定(bind)更改为:
   <bindings>
<binding protocol="http" bindingInformation=":54715:" />
</bindings>

请注意,如果您只想将其限制为您的 IP 和机器名称,您也可以像这样指定绑定(bind):
<binding protocol="http" bindingInformation="*:54715:localhost" />
<binding protocol="http" bindingInformation="*:54715:anishaalaptop" />

我使用我的 android 应用程序通过 Wifi 调试我的应用程序,所以我让绑定(bind)保持打开状态。

关于visual-studio - 在本地网络中使用 Visual Studio Web 服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3965511/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com