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();
});
});