Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use Visual Studio web server in local network

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?

like image 985
Rana Avatar asked Oct 19 '10 05:10

Rana


People also ask

Does Visual Studio have a web server?

When you develop web projects in Visual Studio, you need a web server to test or run them. Visual Studio lets you test with different web servers, including IIS Express, Internet Information Services (IIS), External Hosts, or Custom Web Servers.


1 Answers

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: Project Settings

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.

like image 170
Anish Avatar answered Sep 30 '22 14:09

Anish