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

The ROS master uses port 11311 by default; you can change this by passing the --port option to roscore and by setting a different port in your ROS_MASTER_URI. Note that ports below 1024 usually require root privileges.

Each ROS node sets up a few listening TCP sockets on random ports, one to service xmlrpc calls from the ROS master and other nodes, and one or several for topic connections and services. These ports are randomly allocated by the OS, so it's not possible to know what they will be ahead of time.

I would start by figuring out which ports you actually have available between clients, and then maybe look into some of the multimaster packages or rosbridge for bridging topics between separate ROS masters running on each client.

The ROS master uses port 11311 by default; you can change this by passing the --port option to roscore and by setting a different port in your ROS_MASTER_URI. Note that ports below 1024 usually require root privileges.

Each ROS node sets up a few listening TCP sockets on random ports, one to service xmlrpc calls from the ROS master and other nodes, and one or several for topic connections and services. These ports are randomly allocated by the OS, so it's not possible to know what they will be ahead of time.

I would start by figuring out which ports you actually have available between clients, and then maybe look into some of the multimaster packages or rosbridge for bridging topics between separate ROS masters running on each client.