Set the URLs to use statically in Program.cs.
Set the URLs using DOTNET_URLS or ASPNETCORE_URLS.
Set the URLs with the --urls parameter when running from the command line.
Set the URLs using the applicationUrl property.
Configure addresses for Kestrel server manually using Listen().
dotnet dev-certs https -ep $env:USERPROFILE.aspnet\https\aspnetapp.pfx -p crypticpassword
dotnet dev-certs https --trust
dotnet user-secrets -p aspnetapp\aspnetapp.csproj set "Kestrel:Certificates:Development:Password" "crypticpassword"
dotnet new -i IdentityServer4.Templates dotnet new --install IdentityServer4.Templates::4.0.1
dotnet add package Microsoft.EntityFrameworkCore.Design
dotnet add package Microsoft.EntityFrameworkCore.SqlServer
dotnet ef dbcontext scaffold "Data Source=(local);Initial Catalog=mPayments;Persist Security Info=True;User ID=sa;Password=G532_@diem" Microsoft.EntityFrameworkCore.SqlServer -t MPayMessageQueue -t MPayNppRap -o PaymentContext -c "PaymentContext" -f --no-onconfiguring --no-pluralize