Connecting to Visual Studio debugging IIS Express server over the lan

前端 未结 10 983
慢半拍i
慢半拍i 2020-11-27 10:19

I have a test ASP.NET MVC3 application developed in VS2012. When I start debugging the app is accessed from the host machine via the request to http://localhost:

10条回答
  •  南笙
    南笙 (楼主)
    2020-11-27 11:16

    VisualStudio 2015 Non-Admin

    1. In your solution dir, in the file .vs\config\applicationHost.config change the line

      to

      (where 44302 is your port)


    1. From an admin command prompt:

      i. Enable non-admin to bind to port

      netsh http add urlacl url=http://*:44302/ user=Everyone

      ii. Allow through firewall

      netsh advfirewall firewall add rule name="IISExpress visualstudio app" protocol=tcp localport=44302 dir=in action=allow


    1. Start debugging from VisualStudio

提交回复
热议问题