1 min read

To change the Kestrel configurations on dotnet 6 you need to do this on the program.cs

builder.WebHost.ConfigureKestrel(
  options => {
    // HTTP 6000
    options.ListenLocalhost(6000);

    // HTTPS 6001
    options.ListenLocalhost(6001, httpsBuilder =>
    {
      httpsBuilder.UseHttps();
    });
  });

About the author

For the last decade, Shady Nagy has worked with a variety of web technologies. He is currently focused on code quality. On his day to day job, he is working as a team leader engineer. As a digital nomad, he is living where the WiFi and sun are 😎
Do you want to know more? Visit my website!