[Environment Construction] Vs-visual Studio-iis Express supports LAN access

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.