Skip to content

Specify port for Kestrel .netcore 3.1

LemonWay edited this page Jan 9, 2020 · 1 revision

After publis the project WebApi in .NET Core 3.1, you can run it with

dotnet WebApi.dll --urls=http://*:5004

or

WebApi.exe --urls=http://*:5004

without the parameter --urls the default port value is "https://localhost:5001;http://localhost:5000"