My Technical Notes

Thursday, 24 January 2013

Accessing Visual Studio 2010 Web Server remotely

This post will explain how to access Visual Studio's Web Server (WebDev.WebServer.exe) from a different computer.

VS's web server only allows requests from localhost (same machine). Therefore any request from a remote machine will be rejected. The workaround is to use a port-forwarding utility, so we indirectly access Visual Studio from our remote machine.

For example, let us say that Visual Studio's web server is running on port 2500. The utility will be set up to listen in on a port of our choosing, say 6666, and will forward all that data to 2500.

There are many port-forwarding applications, for example SPI Port Forward, PassPort and Port Forward. Below is a simple screenshot of what you would configure for SPI Port Forward:

Here is a hosted copy of SPI Port Forward (rename the extension to .exe).

For Visual Studio 2013, see this post.

No comments: