KDE Connect - Devices on same network not visible

I have 2 devices, my laptop and android phone on the same network and neither of these are visible to each other on KDE Connect. I’m using Manjaro which is a distribution based on Arch Linux on my laptop and an Android based phone.

I’ve gone through the section -

https://userbase.kde.org/KDEConnect#I_have_two_devices_running_KDE_Connect_on_the_same_network.2C_but_they_can.27t_see_each_other

and here are the outputs:

Android phone ip: 192.168.1.4
Laptop ip: 192.168.1.6
sudo netstat -tunelp | grep -i kdeconnect

tcp        0      0 0.0.0.0:1716            0.0.0.0:*               LISTEN      1000       21095      1905/kdeconnectd    
udp        0      0 0.0.0.0:1716            0.0.0.0:*                           1000       21093      1905/kdeconnectd    
udp        0      0 0.0.0.0:53785           0.0.0.0:*                           1000       68305      1905/kdeconnectd
nc -vz 192.168.1.4 1714-1764

192.168.1.4 1716 (xmsg) open

I’ve also used

killall kdeconnectd
mv ~/.config/kdeconnect ~/.config/kdeconnect.bak

to start fresh on laptop, reinstalled KDE connect from my Android device, cleared cache and storage etc.

I use firewalld and have added KDE Connect service to home zone (which is being used by the connection). I’ve also completed disabled firewalld and this has not made a difference.

I’m stumped and would appreciate help in figuring out why this does not work.

Your firewall needs to open input TCP ports 1716, 1739-1741
KDE Connect app on your phone will use TCP ports >1023 as source port

You also need to allow input UDP port 1716.
KDE Connect app on your phone will use UDP 1716 as well as source port.

If you’re blocking outbound then you also need to allow TCP output to ports 1716, 1739-1740 and UDP to 1716

Even though you disabled firewall you need to make sure no rules from nftables or iptables exist such as default block rules.

While trying to connect you need to open up and tail firewall log to observe dropped traffic.
I don’t know how this is done with firewalld but with nftables you configure logging to separate file.

1 Like

This is the correct answer. I was combing through firewalld and I’d already whitelisted my LAN, but also had an installed of opensnitch where firewall was on and it was blocking all incoming traffic other than established.

1 Like