Visual Studio-iis Express supports LAN access configuration

Source: Internet
Author: User

Transferred from: http://www.itnose.net/detail/6132793.html

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:

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!
[Environment Construction] Vs-visual Studio-iis Express supports LAN access 0Visual Studio-iis Express also seems to have only one address: [Environment construction] vs-visual Studio-iis Express support LAN access 1
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:
[Environment Construction] Vs-visual Studio-iis Express supports LAN Access 2 You can also go directly to this directory:
[Environment Construction] Vs-visual studio-iis Express Support LAN Access 3 Open the profile and locate the "Sites" node-your site project:
[Environment Construction] Vs-visual studio-iis Express support for LAN access 4 by default, only LocalHost is added, and a new entry is here:
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:
[Environment Construction] Vs-visual Studio-iis Express supports LAN access 5 after saving, 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:
[Environment Construction] Vs-visual Studio-iis Express supports LAN Access 6 now try it:
[Environment Construction] Vs-visual Studio-iis Express supports LAN access 7

Visual Studio-iis Express supports LAN access configuration

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.