I have two different machines installed with ubuntu 22.04 and ros (2) humble. I connected those two machines to the same subnet over ethernet connection, and check that they can ping each other. Then I executed in one machine:
ros2 run demo_nodes_cpp listener
And in the other machine:
ros2 run demo_nodes_cpp talker
The communication works perfect.
But, when I did the same thing with the difference of connecting one the those machines to the same subnet via WIFI instead of via ethernet then there is no communication between the nodes. I also try direct wifi connection (turned one of the machines to hotspot). It didn't work. Any idea how to enable the communication over wifi?
It also didn't work with direct wifi connection (without a router). I checked traffic with Wireshark, I can see the broadcast messages over the ethernet network device but not over the wifi network device. I don't get it, if it is notoriously bad over wifi how otherwise autonomous robots communicate with ros2?