Ask Your Question
1

which ports are needed for ROS?

asked 2014-11-24 11:20:35 -0500

madmage gravatar image

Hello, I need to run ROS in a host wifi network and I do not have full control over it. I saw there is a firewall that prevents connections between clients to port 11311, that seems to me to be the port roscore listens to incoming connections. Are there other ports that need to be open? If I find a way to tunnel 11311 to port 80 (that is open) would I succeed?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-11-24 12:22:15 -0500

ahendrix gravatar image

updated 2014-11-24 12:36:43 -0500

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-11-24 11:20:35 -0500

Seen: 8,378 times

Last updated: Nov 24 '14