Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tdshipley/32fab5e3acd0ba9c07c2bf1a4a5d02f8 to your computer and use it in GitHub Desktop.
Save tdshipley/32fab5e3acd0ba9c07c2bf1a4a5d02f8 to your computer and use it in GitHub Desktop.
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