I have been trying to connect apm planner 2 to my arducopter (2.6) board over a TCP connection while using a VPN. The apm planner and the arducopter board are on different networks since the project i’m trying to do envolves long range communication over a cellular network.
My problem is that when I am on apm planner’s interface and try to add a TCP link (in the communication bar) I get the following error: “Error on socket: connection refused”. I somehow managed to connect them both the first time and was also getting telemetry data from the board but since then that error prevents me from doing so again. I have been reading online about this error (error #10061) but still can’t figure what’s wrong. I fear that the TCP port that I’m entering might be wrong, since the host address (IP address) is most certainly correct.
I’d be very grateful if someone could give me some feedback on how to find out which port to use and how to find it (I’m using Linux by the way).