When you develop a Web page using Visual Studio, you want to allow other devices in the LAN to be accessed in debug mode for testing purposes. Although it can be deployed to the server, but cannot be debugged, even if the injection process to debug is not able to meet their own needs, so only in the visual Studio-iis Express debugging.
In this case there will be a problem, you will find that the address in your browser is always: http://localhost:32417/such; input: 127.0.0.1:32417 No! Input: Computer name (or IP): port is also inaccessible. This is a wonderful!
There seems to be only one address in Visual Studio-iis Express:
To solve this problem, you need to meet two conditions:
1.Visual Studio must be started with Administrator privileges
2. Configure the Web site profile in your Visual studio-iis Express server
The second step is implemented in the following way:
To launch the website, click on the Visual studio-iis Express tray icon in the bottom right corner of the desktop, go to the main screen, click on the current website address, and you will see a configuration click Configuration to enter the configuration file:
You can also go directly to this directory:
Open the configuration file and locate the "sites" node-your Web site project:
By default, there is only LocalHost , where a new entry is added:
such as: "<binding protocol=" http "bindinginformation=" *:32417:192.168.0.112 "/>"
After the port is the IP address of your computer, of course the IP address you can look at the status of your network card:
Once saved, use the administrator to restart your VS program and enter the project again into run debugging.
At this point, you can see that the following Web site has two:
Now try:
Done!
Oneself encountered such a problem, in the foreign forum saw some solutions, their own summed up a bit, record down, I hope to help everyone!
[Environment Construction] Vs-visual Studio-iis Express supports LAN access