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 | Q&A answers.ros.org |
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.
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2018-12-27 05:31:58 -0500
Seen: 633 times
Last updated: Dec 27 '18
Check if ROS2 Parameters Exist with RCLCPP
How to connect STM32 in JETSON NANO? (STEP-BY-STEP, PLEASE) [closed]
rclcpp publish Image message field out of an shared_ptr message
Ignore package in colcon but not catkin?
ROS2 and Rviz : only displays values with a radius < 1 meter around the laser [closed]
How to make Gui for control center
ros2 crystal create python pkg
ROS node bridge for publish special topics over the internet
@D0l0RES: please clarify why #q311530 is not a duplicate of this post.