ROS Resources: Documentation | Support | Discussion Forum | Service Status | Q&A

How to communicate with machines on different networks using ros2?

I am using FASTRTPS as my dds with multicasting right now.
How can I have ROS2 nodes communicate with each other if they are located on machines which are on different networks?
I have heard of the DEFAULT_FASTRTPS_PROFILES.xml file. But I am not sure how to program it with IP addresses for each machine.

Thanks for your question. However we ask that you please ask questions on following our support guidelines:

ROS Discourse is for news and general interest discussions. ROS Answers provides a Q&A site which can be filtered by tags to make sure the relevant people can find and/or answer the question, and not overload everyone with hundreds of posts.