You can config it via environment variable ASPNETCORE_URLS
macOS:
export ASPNETCORE_URLS=http://localhost:5050
windows:
set ASPNETCORE_URLS=http://localhost:5050
or add this to launch.json
"env": {
"ASPNETCORE_URLS": "http://localhost:5050"
}
If you don’t want to specify the hostname, you can use * instead
http://*:5050