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 also, just played around with #socat and #reuseaddr and #reuseport a bit. For #UDP #unicast, this did not help, only one socat client receives the packet on Linux. However with #IPv6 #multicast on Linux this seems to work fine, receiving with multiple clients listening on the same UDP port on the same host when using SO_REUSEADDR/SO_REUSEPORT?

Sign in to participate in the conversation
Mauvestodon

Escape ship from centralized social media run by Mauve.