ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

There is I think a better way to tackle this - usually you have the URI of the ros master you want to connect to, so if you can successfully open a socket to that, it means you can introspect what network interface the socket connection is routing along. You can read this issue thread for more details along with some test code I use to solve the multiple network interface problem on android devices.