title: Application starts on different port than what is in launchSettings
body: <p>So, I changed the ports in the launchSettings.json to this:</p>
  <pre><code>&quot;MyProject&quot;: {
      &quot;commandName&quot;: &quot;Project&quot;,
      &quot;launchBrowser&quot;: true,
      &quot;applicationUrl&quot;: &quot;https://localhost:5005;http://localhost:5004&quot;,
      &quot;environmentVariables&quot;: {
        &quot;ASPNETCORE_ENVIRONMENT&quot;: &quot;Development&quot;
      }
  }
  </code></pre>
  <p>I even tried adding this:</p>
  <pre><code>public static IHostBuilder CreateHostBuilder(string[] args) =&gt;
      Host.CreateDefaultBuilder(args)
          .ConfigureWebHostDefaults(webBuilder =&gt;
          {
              webBuilder.UseUrls(&quot;https://localhost:5005&quot;,&quot;http://localhost:5004&quot;);
              webBuilder.UseStartup&lt;Startup&gt;();
          });
  </code></pre>
  <p>I searched the entire application for &quot;5000&quot; and no results are returned.  Yet, every time I start the application, it goes to port 5000.  (Which I want to be used by a different application.)</p>
  <p><a href="https://i.stack.imgur.com/UmCRr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UmCRr.png" alt="Image of console showing app is utilizing port 5000" /></a></p>