Robotics StackExchange | Archived questions

ROS2 on local machine only? (No network)

How do I configure ROS2 so that only nodes on the local computer can talk to each other?

Reasons for question: 1. Security 2. Ensure multiple robots on same LAN don't interfere with each other 3. Ensure no limit to number of robots that can exist on same LAN

Thanks

Asked by high12noon on 2021-08-16 18:44:06 UTC

Comments

Answers

To achieve what you want you can set the environment variable ROS_LOCALHOST_ONLY to 1. This will restrict all the ROS network traffic to your local machine. See this related issue.

Asked by Pepis on 2021-08-19 20:11:28 UTC

Comments