Get destination addres for UDP in nodejs

My server listens on the UDP port and also receives broadcast messages. Can I somehow detect that the received message was sent to my ip directly or to the broadcast address? rinfo just gives me the sender information

+6
source share
1 answer

This is currently not possible.

Check out this link with a Github error

Workaround:

  • have different internal ports for broadcast and normal traffic.
  • Use iptables to redirect broadcast traffic to one of the internal ports and the other to another port.
+4
source

All Articles