Nonsense
Winter vacation back to the Internet Super Inconvenient (computer daily use of mobile hotspot, traffic has not bear to look straight), and the project needs to start from scratch Web, cloud server is there, but the remote too much traffic, so feel the first local debugging learning. To put it simply, it began to go into the pit.
Body
It is said that Visual Studio's own IIS Express can be made available to the Web server for LAN access.
Step 1
Under the project folder, locate the ". Vs" folder, and then go to the "Config" folder and locate the "applicationhost.config" file and open it.
Locate the Sites node:
<sites> <site name="WebSite1" id="1" serverAutoStart="true">
Find the following section:
The line under localhost is the one I added, you should add your own IP address.
查IP的方法:Win+R -> cmd -> ipconfig
Save the configuration file.
Step 2
Open vs with the Administrator and open the project for debugging.
Results
Next, you can access the LAN ...
Hey, home cell phone signal exploded again, picture can't pass up ...
Configure IIS to run external access