I have a WebSite project in Visual Studio 2008 (not a Web Application project!)
How do I set the ASP.NET Development startup port to a static port in a WebSite project?
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.
Open the command prompt. Type “netstat -ano” without the quotes. -a:Displays all active TCP connections and the TCP and UDP ports on which the computer is listening. -n: Displays active TCP connections, however, addresses and port numbers are expressed numerically and no attempt is made to determine names.
We know that ASP.NET Core Application runs under Kestrel Server with default port number http://localhost:5000.
To specify a port for the ASP.NET Development Server - WebSite / WebServices projects
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