Hot take, protocols shouldn't use MDNS for peer discovery if they don't plan to use the OS provided APIs for it. Only one process can reliably bind the UDP port necessary for it and it quickly leads to conflicts. At the very least you should use a custom port to avoid conflicting with the OS.

@mauve I tend to agree. I'm working on a project that uses mDNS and after ending up with issues with certain OS's failing to work with my Go module implementation I shifted to just doing it through Avahi on the host. It's been rock solid since.

Follow

@jgkawell I've been leaning to just doing bespoke multicast UDP stuff personally :o

Sign in to participate in the conversation
Mauvestodon

Escape ship from centralized social media run by Mauve.