How to do ip multicast /broadcast in ASP.NET Core

85 views Asked by At

I have an ASP.NET Core 8 Web API service that needs to "publish" a message to the entire local network. So any client application needs to know that there is a Web API service.

What I'm trying to do is notify any client that is installed on any PC on the local network that there exist a Web API that it can connect to. There could be many Web APIs deployed on multiple machines and many clients (also deployed on multiple machines) but they will be on the same network (subnet).

So each client application would receive a message that tells it there is a web service where it can connect to.

I've done this by scanning the subnet for any ip address that respond to a request, but it is to slow.

I can't have a central point so NO RabbitMq or any messaging bus. I also tried with SSDP using RSSDP library and this works ok when is working, but sometimes it does not.

How to do this?

0

There are 0 answers