Is it possible to choose a fixed port for the Visual Studio 2010 debug webserver?
You can configure this from either the command line or the remote debugger window. In the remote debugger window, click Tools > Options, and set the TCP/IP port number. On the command line, start the remote debugger with the /port switch: msvsmon /port <port number>.
To assign the Debugger a different port: Click Tools > Options > Debug. Assign a new port number in the Port field or select Pick a Port Number Between Min and Max Automatically and assign a range of ports for the Debugger to use. You can select a port between 5001 and 32000 or set a range between 5001 and 32000.
Here is a fast recipe on how to manually change the port number to whatever number you want: In Solution Explorer, right-click the name of the web application and select Properties. Click the Web tab. In the Servers section, under dropdown selection for IIS Express, change the port number in the Project URL box.
For me, I was able to find it with the following steps in Visual Studio 2017: Right click on the web project, then click Properties. Click on the Debug tab. Under the Profile IIS Express, you will find the port at the App URL box.
If it's similar to VS2008, you can do the following to fix the port number:
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With