title: ASP.NET Core: How to change IIS Express port?
body: <p>I'm using IIS Express to host my website and API both of which are ASP.NET Core apps. When I look at my HTTP network logs using Fiddler, I always forget what port belongs to which app. To solve this, I would like to change the port number that my apps currently use to a number that is more memorable. </p>
  
  <p>For example, I want my UI website to use port 50000 and my internal API to use 50001.</p>
  
  <p>Intuition tells me to change the "sslPort" and "launchUrl" to 50000 and 50001 respectively but that doesn't work.</p>
  
  <p>For example, this is my current <code>launchSettings.json</code> file for my ASP.NET </p>
  
  <pre><code>{
    "iisSettings": {
      "windowsAuthentication": false,
      "anonymousAuthentication": true,
      "iis": {
        "applicationUrl": "http://localhost",
        "sslPort": 0
      },
      "iisExpress": {
        "applicationUrl": "http://localhost:29751",
        "sslPort": 44371
      }
    },
    "profiles": {
      "Development": {
        "commandName": "IISExpress",
        "launchUrl": "https://localhost:44371/"
      }
    }
  } 
  </code></pre>
  
  <p>Changing it to this doesn't work</p>
  
  <pre><code>{
    "iisSettings": {
      "windowsAuthentication": false,
      "anonymousAuthentication": true,
      "iis": {
        "applicationUrl": "http://localhost",
        "sslPort": 0
      },
      "iisExpress": {
        "applicationUrl": "http://localhost:29751",
        "sslPort": 50000
      }
    },
    "profiles": {
      "Development": {
        "commandName": "IISExpress",
        "launchUrl": "https://localhost:50000/"
      }
    }
  } 
  </code></pre>
  
  <p><strong>Question:</strong> Why doesn't this change work? How do I change the port number?</p>
  
  <p>Many thanks...</p>