Connecting QGroundcontrol to PX4 SITL Running inside Docker

Hi. I am running PX4 SITL inside a docker container. I would like to use QGroundControl outside the docker container (running on host) but I am not able to do that so far. I followed instruction in (https://dev.px4.io/v1.10/en/test_and_ci/docker.html#qgroundcontrol):

  • I used p 14570:14570/udp with the run docker command to expose/forward 14570 port
  • Created comm link in QGC with 14570 port and the docker container IP address.

However, when I try to connect to this link, QGC gives a message that the bounding address is already in use!
But I don’t think that this address is being used. What could be the issue?

Thanks!

Try https://github.com/jonasvautherin/px4-gazebo-headless