asp.net core run on localhost 5000 only linux code example Example: asp.net core 3.1 publish on ubantu dotnet publish --configuration Release