You could take a look at service discovery using Avahi: -
discovery for a network of linux devices
-
29-05-2022 - |
Pergunta
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?
Solução
Outras dicas
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.
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow