Constraining the ports that ROS use [closed]

asked 2020-10-21 04:57:23 -0500

wintermute gravatar image

Hello,

Is there anyway to constrain the ports that ROS uses, [i.e: the ports that publishers and subscribers use] to a range, such as 30000-40000? Right now, it arbitrarily uses a port from >1024 to < 65536

This is required so I can proxy a ros container inside LXD, running on RPI4.

Best regards, C.A.

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by gvdhoorn
close date 2020-10-21 06:03:24.914618

Comments

This reads like a duplicate of at least #q245273 and #q268213, and a very old one: #q12206.

That last one also has a tip for how you could approach this, but know that limiting the ephemeral range will do this for all processes, not just ROS nodes.

gvdhoorn gravatar image gvdhoorn  ( 2020-10-21 06:03:03 -0500 )edit

As this is a duplicate, I'm going to close it.

gvdhoorn gravatar image gvdhoorn  ( 2020-10-21 06:03:17 -0500 )edit