Visual Studio 2010 debug in a fixed port

Farinha picture Farinha · May 27, 2010 · Viewed 13.9k times · Source

Is it possible to choose a fixed port for the Visual Studio 2010 debug webserver?

Answer

Chris Schmich picture Chris Schmich · May 27, 2010

If it's similar to VS2008, you can do the following to fix the port number:

  1. Click on the web site project node in Solution Explorer
  2. Hit F4 to bring up the properties tool window
  3. Set "Use dynamic ports" to false
  4. Set "Port number" to whatever you need