My server listens on a UDP port and also receives broadcast messages. Can I detect somehow if the received message was sent to my ip directly or to a broadcast address? rinfo
just gives me the sender information
6
votes
I did UDP stuff, but never done broadcast stuff, so this is simply my impression. If you find there is no way to do that in the end, I would recommend you to have separate receivers for each of direct and broadcast messages. Good luck.
– user1028880