What is the main reason for Visual-Studio to assign (auto-assign) a new port number to the development server?
What is the main reason for Visual-Studio to assign (auto-assign) a new port number
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
By using a random port way above the so-called well-known ports there’ll be less change for the port to be in use by another application.
Visual Studio randomizes the port on project creation:
But if the port is in use when starting to debug the project, it’ll auto-assign a new random, free port.
See here how to alter this behaviour and manually assign a static port number.