You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Problem with UDP broadcast packet reception on Linux #11
I'm running an Art-Net Output node using your library on Linux on a Raspberry Pi. I'm using DMX-Workshop and QLC+ on a separate Windows PC.
When using older version (0.0.20) of your library the node:
is discoverable using DMX-Workshop
receives broadcast ArtDmx packets
I am aware that controllers shouldn't be sending broadcast ArtDmx according to the specification, but it is useful in my case.
In the current version (0.0.38) the node:
cannot be discovered by DMX-Workshop
doesn't receive broadcast ArtDmx packets from QLC+
When running the same version (0.0.38) on a Windows PC the node:
is discoverable using DMX-Workshop
receives broadcast ArtDmx packets
After a little investigation I've noticed that the older version of your library used a single socket bound to 0.0.0.0. Current version creates a separate socket for each network interface bound to the local IP address.
I made a few experiments using sockets in Python on Linux. From what I know on Linux a socket bound to for example 10.0.0.5 can only receive packets with the destination IP 10.0.0.5. All of the broadcast packets are ignored in this case.
On Linux there are 2 ways of receiving broadcast packets:
binding a socket to 0.0.0.0 which doesn't filter destination IP at all.
binding a socket to the interface’s broadcast address (e.g. 10.255.255.255 for 10.0.0.5/8). In this case only packets with destination IP 10.255.255.255 are received.
I think that creating 2 sockets for each network interface (excluding loopback) on Linux could be a solution to this problem:
one for receiving unicast and transmitting
second socket only for receiving broadcast packets
I can also check how it works on macOS, but it should be similar to Linux, because both of them are Unix-like.
sockets bound to network interface's local IP don't receive broadcast packets
it's possible to bind a socket to a broadcast address
I'm not sure, what would be the best (portable) solution for this. Maybe a single socket bound to 0.0.0.0 for broadcasts also wouldn't be that bad (for Mac and Linux)? But it would require filtering packets by source IP if we would like to restrict, which subnets are being used for Art-Net...
Activity
mkolender commentedon Feb 3, 2026
Sockets on macOS work similar to Linux:
I'm not sure, what would be the best (portable) solution for this. Maybe a single socket bound to 0.0.0.0 for broadcasts also wouldn't be that bad (for Mac and Linux)? But it would require filtering packets by source IP if we would like to restrict, which subnets are being used for Art-Net...
FIx Issue #11