Visual Studio Debug Access from Other Computer

Assume your machine name is ‘jedi’, and your port number is ’16253′, replace appropriately.

1. Run a command prompt as administrator, and type in

netsh http add urlacl url=http://jedi:16253/ user=everyone

2. Open up the following file in Notepad or Visual Studio

MyDocuments\IISExpress\config\ applicationhost.config

change the binding from:

<binding protocol=”http” bindingInformation=”*:16253:localhost” />

to:

<binding protocol=”http” bindingInformation=”*:16253:jedi” />

3. Restart the IISExpress service (use the tray icon or task manager).

4. In Visual Studio, change your Project->Properties->Web settings to launch http://jedi:16253 insead of http://localhost:16253

5. In a web browser on your development machine type http://jedi:16253/

6. Assuming all is good – Open up the port on the firewall.

Goto the Windows Firewall with Advanced Security panel
Create a new inbound rule
Click ‘Port’
Click ‘Next’
Click TCP
Enter a specific port 16253
Click ‘Next’
Click ‘Allow the connection’
Click ‘Next’
Click ‘Next’ (you could untick Public)
Give it a name “My MVC App” and press Finish.

7. You should now be able to access the page on the mobile device when connected to the Wi-Fi using http://jedi:16253/

http://gilesey.wordpress.com/2013/04/21/allowing-remote-access-to-your-iis-express-service/

Chandra Oemaryadi has written 244 articles

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>