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: 663 times
Last updated: Dec 27 '18
How to add C++ plugin to sdf file in ROS2 Humble ?
ROS in arm/v7, Docker, and Limited Storage Robot
Update odometry based on pose estimate
rviz2 does not display an urdf file
/odom topic doesn't work on ROS2
subscription callback types ROS1 vs. ROS2
ament_export_dependencies(Boost) not working?
static_transform_publisher in ROS2 launch file
[ROS 2] How is the name of the typesupport library generated?
@D0l0RES: please clarify why #q311530 is not a duplicate of this post.