Reputation: 4611
Is there a way to access visual studio web server from another computer that share the same router? I tried connecting to the IP address but it didnt work. Is there a setting in VS? or firewall?
Upvotes: 18
Views: 30011
Reputation: 191
You can use ngrok or an extension for VS https://marketplace.visualstudio.com/items?itemName=vs-publisher-1448185.ConveyorbyKeyoti . I'm using this extension and it's very useful
Upvotes: 5
Reputation: 3172
You can achieve this by installing IIS Express. Go to
http://www.microsoft.com/en-us/download/details.aspx?id=1038
Once installed, change your project setting to this:
Then go to
%userprofile%\Documents\IISExpress\config\applicationhost.config
and for the project change the binding to this:
<bindings>
<binding protocol="http" bindingInformation=":54715:" />
</bindings>
Note, you can also specify the bindings like this if you just want to limit it to your IP and machine name:
<binding protocol="http" bindingInformation="*:54715:localhost" />
<binding protocol="http" bindingInformation="*:54715:anishaalaptop" />
I debug my app over Wifi using my android app so I leave the binding open.
Upvotes: 14
Reputation: 135
I assume you mean the cassini web server built into visual studio. In short, no you can't. That cassini web server can only be accessed from the local computer.
I found some further information. According to MSDN, you can't access it from another machine. What are some known functionality limitations of the Cassini Web server?
It can host only one ASP.NET application per port.
It does not support HTTPS.
It does not support authentication.
It responds only to localhost requests.
see this MSDN article http://support.microsoft.com/kb/893391
Upvotes: 9