Running a .NET 6 Service on a Specific Port

added by DotNetKicks
11/23/2021 3:04:23 PM

386 Views

I often have web services for test and demo purposes. For these services, I want to hard-code a localhost port so that I can minimize conflicts if I have multiple projects and services running at the same time. What I found is that the way I was doing this with .NET 5 does not work with .NET 6 services.


0 comments