ArduPilot / MAVProxy

MAVLink proxy and command line ground station
GNU General Public License v3.0
462 stars 675 forks source link

How can i connect MAVProxy (in server) to QgroundControl (in local) #746

Open Mazvangui opened 4 years ago

Mazvangui commented 4 years ago

I need to connect MAVProxy running in my server to QgroundControl in my local, so i tried to do this way:

  1. Server side:

    • run DroneKit: dronekit-sitl copter (by default listen to 5760 port)
    • run MAVProxy: mavproxy.py --quadcopter --master tcp:127.0.0.1:5760 --sitl 127.0.0.1:5501 --out 127.0.0.1:14550 --out 127.0.0.1:14551
    • add my local output to MAVProxy: output add my_local_ip_addr:14550
  2. Local side:

stephendade commented 4 years ago

Is MAVProxy showing that it's connected to the SITL instance?

THOM-AwS commented 2 months ago

127.0.0.1 is the address of this computer. that means that you are telling mavproxy to advertise your application only on the server, and your local will never be able to get to it. if you want to advertise to things outside your server, you need to change 127.0.0.1 to 0.0.0.0 or whatever address you want to connect, like the ip of your local.

if you are doing all this inside a lan, 0.0.0.0 is fine.

probably try to understand network security before you go leaving that on all the time.