I'm trying to send a UDP datagram message with
socat to a broadcast address.
On the receiving end this is how I'm running
socat (with root privileges):
socat UDP-LISTEN:1011 -
I'm trying to send the message with the following code (with root privileges):
echo -n "test" | socat - UDP-DATAGRAM:255.255.255.255:1011,broadcast
When using a port below 1025 (a privileged port, etc), broadcast datagram messages seem to get dropped. When I use a port above 1024, it works fine.
I also tried a broadcast address according to my local network, but I observe the same behavior, only ports above 1024 receive the datagram.
iptables don't have any entries, that would impede receiving of UDP messages on the receiving side. Similarly, no entries on the sending side.
iptables -L contains no entries except what is expected after running
Is this standard behavior and I should simply use a port >1024, or can I work around this? I'd like to use a port below 1025 in my case.