$ 0 0 To complement Amit's answer: Option to change port setting while debugging an ASP.NET Core project in Visual Studio 2019 is as below:Go to Project Properties > Deubg tab > Web Server Settings > App URL