Lauri Koskela

1 pages tagged with "linux"

Loopback UDP broadcasts and multiple listeners

October 19, 2025 - 707 words - 4 mins

I ran into a situation where multiple processes needed to receive all UDP datagrams sent from a service running on the same host. The sender already set SO_BROADCAST, and I thought setting the target host to 127.255.255.255 should be enough to make things work. And of course, the clients must use the same host and specify SO_REUSEADDR so that they receive the packets. But the reason why this works is more interesting.

read more