问题
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.
I check these:
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
I use windows 10 with iis express 6
回答1:
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.
In the file applicationhost.config
which resides at %userprofile%\documents\iisexpress\config
change your localhost
to *
or even the name of your machine.
Otherwise why not install IIS which allows for more tweaking of the site than express?
How to Install IIS on Windows 8 or Windows 10
来源:https://stackoverflow.com/questions/36157264/accessing-an-iis-localhost-path-from-another-computer-on-the-network