Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remote machines cannot connect to Visual Studio web server

I remember when MS was developing Cassini - I believe they rolled it into VS 05/08, so I think this is a Cassini web server question.

I am using Windows XP with Visual Studio 2008, and find it quite inconvenient when I want to test a web page/styling with multiple browsers and multiple OSes. Right now I have to deploy the code on our server, and if there are any updates that need to happen, the process turns into quite a time drain. Since I am using XP/IIS 5, the option of using IIS is not an option. The use of IIS on XP requires an extra prefix for a project, which breaks all links, css etc. This was also a really quick development project so things like root dir that should be pulled out to config aren't, I am quite on board with this type of solution but it wasn't implemented in this project. It also seems really sketchy that MS wouldn't allow a simple flag somewhere to allow remote connections - its quite simple (http://www.devx.com/dotnet/Article/11711) but I don't want to recompile Cassini.

Does anyone know how to allow the integrated development web server in Visual Studio 2008 to be seen by other computers? This would save loads of time.

like image 770
Mario Avatar asked Oct 20 '08 23:10

Mario


People also ask

How do I fix unable to connect to remote server?

Resolving The ProblemReconfigure the client device's third-party software (e.g. Symantec Firewall) to allow EXCEL. EXE the ability to connect to the Controller application server. Modify the name of the server that the client device uses (to connect to the Controller application server) to the correct value.

How do I fix unable to start debugging on web server?

Restart your Application Pool. Check that your Web Application folder has the right permissions. Make sure that you give IIS_IUSRS, IUSR, or the specific user associated with the Application Pool read and execute rights for the Web Application folder. Fix the issue and restart your Application Pool.

Could not connect to the remote computer make sure that the remote computer name is correct?

If you cannot connect using the remote computer name, try using the IP address instead. You can use ipconfig in a command line on the remote computer to get the IPv4 address. If you are using a HOSTS file, verify that it is configured correctly.


2 Answers

just figured out a good solution: 1) Set up fiddler on development machine 2) Set up remote machine to use fiddler as proxy 3) browse to http://localhost.:[insert your dev port # here]/ on remote machine

like image 80
ronsky Avatar answered Sep 23 '22 23:09

ronsky


Sorry for answering an old question, but it ranks in Google so I decided to add my 2 cents:

In VS 2010 there's an option to use "IIS Express" instead of VS Development Server, which allows remote connections by default.

UPDATE: current version of IIS Express does not allow external connections by default, see HERE on how you can enable remote connections.

like image 40
Alex from Jitbit Avatar answered Sep 21 '22 23:09

Alex from Jitbit