Reputation: 22556
I am developing a Web API project in ASP.Net using Visual Studio 2013.
When I click debug it launches the website in IIS and displays it in Chrome browser. However, I cannot access it from another device.
I need to access the API from my mobile device for testing purposes. How can I perform remote debugging in Visual studio 2013?
Upvotes: 2
Views: 7854
Reputation: 9806
From Handling url binding failures in IIS Express:
To enable your website to serve external traffic, you need to configure HTTP.sys and your computer's firewall. From an elevated command prompt, run the following command:
netsh http add urlacl url=http://myhostname:8080/ user=everyone
After configuring HTTP.sys, you can configure IIS Express to use port 8080 by using WebMatrix or Visual Studio 2010 SP1 Beta+, or by editing the applicationhost.config file to include the following binding in the sites element. (Replace myhostname with your computer's domain name).
<binding protocol="http" bindingInformation="*:8080:myhostname"/>
You will also need to configure the firewall to allow external traffic to flow through port 8080.
Upvotes: 1
Reputation: 101
Your device is running under AVD emulator ?
I suggest follow this steps:
Upvotes: 1