I have been in the same boat a while back. Couldn’t connect and spend hours to look for troubleshooting help.
Here’s what I came up with:
-
Obvious but important, both devices need to be on the same network
-
Is the kdeconnect process running:
ps -ef | grep kdeconnect
Example output:
user 3399 1 0 08:26 ? 00:00:02 /usr/lib/x86_64-linux-gnu/libexec/kdeconnectd
- Is the process listening?
sudo netstat -tunelp | grep -i kdeconnect
Example output
tcp6 0 0 :::1716 :::* LISTEN 1000 36999 3399/kdeconnectd
udp6 39936 0 :::1716 :::* 1000 36998 3399/kdeconnectd
-
Maybe your firewall gets in the way?
Is the firewall running?
sudo ufw status
If yes, turn it off for the test
sudo ufw disable -
Are the ports open/blocked?
netcat -z -v 1714-1764 # Try phone and laptop, use port which netstat shows
Example output:
Connection to <your -phones-ip> 1716 port [tcp/*] succeeded!
- lots of Connection refused, but you need 1 “succeeded”
-
Check the kdeconnect home dir
ls -al /home//.config/kdeconnect/ -
Check CLI interface
kdeconnect-cli