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

Clarification on ROS's port usage

asked 2011-04-13 09:11:08 -0500

baxelrod gravatar image

According to this page: http://www.ros.org/wiki/ROS/NetworkSetup, for nodes on two computers to communicate, all ports must be open.

  1. Doesn't this raise security concerns?
  2. Is it really all ports? Isn't it only ports above 1024 or perhaps a smaller subset?
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2011-04-14 12:54:46 -0500

kwc gravatar image

ROS clients typically bind to port 0. This will generally return socket port numbers > 1024. On a default Ubuntu installation, for example, you need superuser to bind <= 1024.

edit flag offensive delete link more
1

answered 2011-05-09 03:57:17 -0500

baxelrod gravatar image

Actually, an ephemeral port will be used. The exact range of which can vary by OS and kernel. See for more info: http://www.ncftp.com/ncftpd/doc/misc/ephemeral_ports.html

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-04-13 09:11:08 -0500

Seen: 1,782 times

Last updated: May 09 '11