I'm developing a web api, but when I run it with dotnet on Ubuntu18.04, it only listens on http://localhost:5000. I'm using nginx as a reverse proxy and to redirect http to https, but I think that the problem is with kestrel.
Asked
Active
Viewed 507 times
1 Answers
-1
Say you want to listen port 5020
var host = new WebHostBuilder()
.UseKestrel()
:
.UseUrls("http://localhost:5020/")
.Build();
host.Run();

Long Field
- 858
- 9
- 16