I recently encountered a problem where my Matlab ROS2 would not connect to my ROS2 node on another machine. I had found out that the ROS2Server "libwmros2server" had selected a wrong network interface and therefore the DDS did not work.
My research on the internet and browsing the Matlab settings showed that it was not possible to select a network interface. Would it be possible to add an option to achieve this?
At this point, my solution is to turn off network adapters using powershell. (see Disable-NetAdapter)
With kind regards