Bind a socket to a specific interface for UDP sending [closed]
Hi all,
I've written a node that sends a datagram to a specific port and IP.
The node works and runs but only sends to the loopback interface, even though the IP set is that of a different network adapter.
I've tried to setsockopt to a specific adapter but I get "operation not permitted" i'm assuming because ros doesn't have root privileges. (Look here https://stackoverflow.com/questions/4... )
I've also tried with IPADDR_ANY with no luck.
Could someone point me in the right direction?
Thanks for your help
A possible reason you didn't get any replies: this is not a ROS question, but a general networking related one.
This sort of question is best asked on SO or a forum like that.