从网络上的另一台计算机访问iis本地主机路径 [英] accessing an iis localhost path from another computer on the network
问题描述
我在Visual Studio 2015中有一个Web应用程序项目.我使用 http://localhost/WebApplication1 URL.我可以使用上面的url从我的计算机访问该项目,但是我无法从将其直接连接到该计算机的另一台计算机访问.
I have a web application project in visual studio 2015. and i built it on Local iis with http://localhost/WebApplication1 URL. i can access to the project from my computer with above url but i can not access from another computer that i directly connected it to this.
我检查这些:
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
我将Windows 10与iis Express 6一起使用
I use windows 10 with iis express 6
推荐答案
IIS Express的主要目的是仅处理用于调试和开发目的的本地请求.尽管可以打开并通过一些调整向您的站点提供外部请求.
IIS Express was primarily designed to only process local requests for debug and development purposes. Though one can open it up and provide external requests with your site with a few tweaks.
在位于%userprofile%\ documents \ iisexpress \ config
的文件 applicationhost.config
中,将您的 localhost
更改为 *
甚至是您的计算机名称.
In the file applicationhost.config
which resides at %userprofile%\documents\iisexpress\config
change your localhost
to *
or even the name of your machine.
否则为什么不安装IIS而不是允许对网站进行更多调整的IIS?
Otherwise why not install IIS which allows for more tweaking of the site than express?
这篇关于从网络上的另一台计算机访问iis本地主机路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!