This is only short tutorial about how to enable or disable or change Kestrel port number in Asp.net core 6 after we run dotnet publish. There are several ways that we can use, for example: Change applicationUrl and sqlPort in Properties/launchSettings.json. If using Visual Studio, change in Project Properties > Debug tab > Web Server Settings. Comment out app.UseHttpsRedirection(); in Program.cs and…