13

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

Farinha
  • 17,636
  • 21
  • 64
  • 80

2 Answers2

24

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
Chris Schmich
  • 29,128
  • 5
  • 77
  • 94
9

Should appear as an option in the web project properties, 'Web' tab. By default its set to auto-assign but theres an option to set a specific port.

Mark Storey-Smith
  • 997
  • 10
  • 15