Ports are locked down in IIS Express so that it doesn't have to be run as Administrator...

Valid Ports are 44300 - 44399

Check out the Dev Community article https://developercommunity.visualstudio.com/content/problem/39430/changing-port-number-in-a-web-project-does-not-imm.html

You can edit launchSettings.json, but the ssl ports must fall in this range.


This is for an Asp.Net MVC .Net Framework Project

  1. Select your Project by highlighting it.
  2. Then hit F4 to open its Properties pane.
  3. Find the SSL Enabled item on list and set its value to True, and copy SSL URL value onto your clipboard.
  4. Whilst your Project is highlighted, hit Alt + Enter to open the Properties dialogue - paste the copied SSL URL into the project url under the Web menu input box.

For Visual Studio 2019 and 2017:

  1. In Solution Explorer, right click the project > Properties
  2. Select the Debug Tab
  3. Check Enable SSL enter image description here