Select the desired port.
how to set a specific port (Ethernet) for publishing topics. I have 2 Ethernet ports, I want only one port to publish topics.
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
This is a networking question more than it is a ROS question. The answer is it depends on your computer's network configuration.
ROS publishes data to the whole of the network it's connected to, so if both of the ethernet ports on your computer connect to different parts of the same network then messages could be published over both ports. However if your computer is connected to two different networks then you control which one ROS connects to using the ROS_IP or ROS_HOSTNAME environment variables as described here.
Hope this helps.
As far as I know ROS is only designed to work across a single network. There may be a solution with a VPN.
Asked: 2018-12-27 05:31:58 -0500
Seen: 664 times
Last updated: Dec 27 '18
[ros2cli] lifecycle list sub command seg faults
what is difference between local_setup.bash and setup.bash in ros2
Plan a MotionSequenceRequest Moveit2
ROS2: rviz in docker container
timeout error while saving map
How to run a package from .exe instead of "ros2 run"? (or: What exactly does ros2 run do?)
cmake error package is considered to be NOT FOUND
ROS2 controller manager migration from foxy to humble: controller manager not available
@D0l0RES: please clarify why #q311530 is not a duplicate of this post.