gpt4 book ai didi

asp.net - 从网络上的另一台计算机访问 iis localhost 路径

转载 作者:行者123 更新时间:2023-12-05 07:50:26 25 4
gpt4 key购买 nike

我在 visual studio 2015 中有一个 Web 应用程序项目。我使用 http://localhost/WebApplication1 在本地 iis 上构建它网址。我可以使用上面的 url 从我的计算机访问该项目,但我无法从我直接连接到它的另一台计算机访问该项目。

我检查这些:

1.I can share folders from these computers.
2.I make a rule in firewall for port 80 inbound
3.I checked vs debug remote allowed in firewall
4.I checked "ping localhost" and it received ping

我在 iis express 6 上使用 Windows 10

最佳答案

IIS Express 主要设计用于仅处理用于调试和开发目的的本地请求。尽管可以打开它并通过一些调整向您的站点提供外部请求。

在位于 %userprofile%\documents\iisexpress\config 的文件 applicationhost.config 中,将 localhost 更改为 * 甚至您机器的名称。

否则为什么不安装 IIS,它允许比 express 对站点进行更多调整?

How to Install IIS on Windows 8 or Windows 10

关于asp.net - 从网络上的另一台计算机访问 iis localhost 路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36157264/

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