You could take a look at service discovery using Avahi: -
discovery for a network of linux devices
-
29-05-2022 - |
Question
I have a set of identical, custom linux devices plugged into a network and assigned addresses via DHCP. These need to be able to automatically discover each other. What's the most appropriate way of doing this?
Solution
OTHER TIPS
You could implement Upnp protocol on your devices. It'll do what you ask for and more. Using a tested protocol is better than creating a new one.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow