VS2013 MVC Web Project uses built-in iisexpress to support LAN internal machine (mobile, PC) access, debugging

Source: Internet
Author: User

The VS2013 has a built-in iisexpress. When you do Web project development with ASP. Ctrl+f5 and F5 start the project run (the latter is debug mode) while the iisexpress is turned on, in fact this is the built-in server for the Web project. By default, the Web project that the server runs does not support access to other machines within the LAN. In order to do this:

1. Turn off the firewall.

2. Modify the ApplicationHost.config file in the C:\Users\Administrator\Documents\IISExpress\config directory:

Find the name of your Web project or the port number where your Web project is running, find the bindings entry for the Web project, and add a binding configuration:

<bindings>
<binding protocol= "http" bindinginformation= "*:3859:localhost"/>//this line is generated by default
<binding protocol= "http" bindinginformation= "*:3859:192.168.1.108"/>//This is the line I configured to support external access, IP is the local LAN IP

</bindings>

OK, now other machines, including those using WiFi in the local area, can also be accessed.

VS2013 MVC Web Project uses built-in iisexpress to support LAN internal machine (mobile, PC) access, debugging

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.