dasMulli/dotnet-win32-service

Running multiple Windows services concurrently not working

nzxgq0 opened this issue · 1 comments

I have a windows service developed using DasMulli.Win32.ServiceUtils. With different service home directories and also different configuration files, I installed several (2~4) Windows services with the same executable on the same box. The first Windows service works smoothly but it doesn't allow a second service to start unless the first one is stopped.
image

It looks on the same box it only allows one Windows service running at a time. Could you please check and fix it? Thanks.

The root cause is the port conflict. By default, the ASP.NET Core web host uses the port 5000. Without specifying the url, multiple Windows services compete the port and only one can get it.

Please market is as closed.