I am deploying a simple ASP.NET Core 6 Web API via Microsoft's self-contained deployment method. When running the EXE, it always binds to port 5000/5001 - how does one change that port to something else?
Asked
Active
Viewed 546 times
0

marc_s
- 732,580
- 175
- 1,330
- 1,459

Sam Carleton
- 1,339
- 7
- 23
- 45
-
1See https://stackoverflow.com/questions/37365277/how-to-specify-the-port-an-asp-net-core-application-is-hosted-on – Gaël James Dec 04 '22 at 20:14
-
1Does this answer your question? [How to specify the port an ASP.NET Core application is hosted on?](https://stackoverflow.com/questions/37365277/how-to-specify-the-port-an-asp-net-core-application-is-hosted-on) – Martin Dec 04 '22 at 22:10