<div dir="ltr">Hello <span style="font-family:arial,sans-serif;font-size:12.727272033691406px">Achilleas,</span><div><span style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">Sorry for the long absence. Have you made any progress on this? Did you manage to solve the problems with the pairing? Actually</span><span style="font-family:arial,sans-serif;font-size:12.727272033691406px"> KDE Connect should listen to the VPN interface, but you may have to restart it.</span></div><div><span style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">Regards,</span></div><div><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">Albert</span></div><div><span style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 6, 2014 at 3:16 PM, Achilleas Koutsou <span dir="ltr"><<a href="mailto:achilleas.k@gmail.com" target="_blank">achilleas.k@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Greetings all,<br>
<br>
New guy here.<br>
<br>
I've been slowly working on implementing a new feature for KDE connect<br>
that will allow two devices to communicate through separate networks or<br>
through an alternative or non-local network (such as a VPN).<br>
Specifically, I wanted to address Bug 326509 [1] (feature request).<br>
<br>
My initial attempt started by adding a new backend for handling<br>
connections through VPNs automatically. There are two problems with this<br>
approach:<br>
- In order to be a general solution, it would have to accommodate all<br>
types of VPNs and VPN interfaces.<br>
- Some VPNs, e.g., OpenVPN in routing mode configured as a tunnel with a<br>
tun interface, don't allow broadcast packets, which is necessary for KDE<br>
Connect to work.<br>
<br>
My current approach is to add a new backend and menu for manually<br>
specifying IP addresses of foreign devices. This can also accommodate<br>
hostnames and non-standard port numbers. This was actually Albert Vaca's<br>
original idea which he shared with me when I first contacted him about<br>
working on this issue. Given the nature of KDE Connect, specifically the<br>
fact that it's designed and meant to Just Work, the manual IP input<br>
interface should probably be hidden in an advanced menu.<br>
<br>
So far, I've forked the repositories to my GitHub account (both KDE [2]<br>
and Android [3] repositories). On the Android side, I've got a few<br>
things working, mostly hard coded hacks as proof of concept. Specifying<br>
the VPN IP of my desktop in the Android app actually works, but the<br>
pairing is a bit flaky, probably because the KDE side isn't listening on<br>
the VPN interface (?).<br>
<br>
In general, when I'm finished with this, it should be possible to pair<br>
and connect two devices that aren't on the same network or when<br>
broadcast isn't possible, as long as the two devices are able to<br>
communicate with one another. This should also work when a device is<br>
behind a NAT/firewall, as long as the specified port is forwarded<br>
appropriately.<br>
<br>
This message is intended both as an introduction for myself, to let you<br>
know how I'm thinking about the problem, see if there's anything I<br>
missed about how the connectivity should (or could) work and to ask if<br>
anyone else has any ideas for solving this issue.<br>
<br>
So, what do you all think?<br>
<br>
Cheers.<br>
<br>
--<br>
Achilleas<br>
<br>
<br>
[1] - <a href="https://bugs.kde.org/show_bug.cgi?id=326509" target="_blank">https://bugs.kde.org/show_bug.cgi?id=326509</a><br>
[2] - <a href="https://github.com/achilleas-k/kdeconnect-kde" target="_blank">https://github.com/achilleas-k/kdeconnect-kde</a><br>
[3] - <a href="https://github.com/achilleas-k/kdeconnect-android/tree/manualip" target="_blank">https://github.com/achilleas-k/kdeconnect-android/tree/manualip</a><br>
_______________________________________________<br>
KDEConnect mailing list<br>
<a href="mailto:KDEConnect@kde.org">KDEConnect@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kdeconnect" target="_blank">https://mail.kde.org/mailman/listinfo/kdeconnect</a><br>
</blockquote></div><br></div>