Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Examples of how to run the ASP.NET Core web server with a specified port at the command line.
# Unix:
ASPNETCORE_URLS="https://*:5123" dotnet run
# Windows PowerShell:
$env:ASPNETCORE_URLS="https://*:5123" ; dotnet run
# Windows CMD (note: no quotes):
SET ASPNETCORE_URLS=https://*:5123 && dotnet run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment