Ubuntu – How to pair android and ubuntu via KDE connect behind firewall [ufw]

androidkdeufw

I have my ufw setup in my ubuntu. I have problem with connecting KDE connect and my ubuntu pc behind firewall. How do I do it? Disabling firewall easily pairs the two device but I am having difficulty with firewall on.

Best Answer

Just found a solution

https://community.kde.org/KDEConnect mentions that we need to enable rule in ufw.

so...

sudo ufw allow 1714:1764/udp
sudo ufw allow 1714:1764/tcp

And I needed to reboot my laptop for things to work. Its working now like a charm with ufw running.

Related Question