Kdeconnect not connecting

This worked for me. More info here: KDE - ArchWiki

Hello, I tried your solution, but kdeconnect still fails to connect to Android devices. Here is my ufw status:

Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), disabled (routed)
New profiles: skip

To                         Action      From
--                         ------      ----
1714:1764/tcp              ALLOW IN    Anywhere
1714:1764/udp              ALLOW IN    Anywhere
1714:1764/tcp (v6)         ALLOW IN    Anywhere (v6)
1714:1764/udp (v6)         ALLOW IN    Anywhere (v6)

and netcat:

$ netcat -z -v 192.168.50.95 1714-1764
netcat: connect to 192.168.50.95 port 1714 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1715 (tcp) failed: Connection refused
Connection to 192.168.50.95 1716 port [tcp/xmsg] succeeded!
netcat: connect to 192.168.50.95 port 1717 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1718 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1719 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1720 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1721 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1722 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1723 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1724 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1725 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1726 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1727 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1728 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1729 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1730 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1731 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1732 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1733 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1734 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1735 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1736 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1737 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1738 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1739 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1740 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1741 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1742 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1743 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1744 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1745 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1746 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1747 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1748 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1749 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1750 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1751 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1752 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1753 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1754 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1755 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1756 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1757 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1758 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1759 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1760 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1761 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1762 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1763 (tcp) failed: Connection refused
netcat: connect to 192.168.50.95 port 1764 (tcp) failed: Connection refused

While kde connect shows:

So any ideas? Thanks for your attention!

Did you try to stop the firewall ?

I know this is marked as solved, but sometimes I have to open the app on my phone, or just unlock it, then it connects.

Also, I use Portmaster, for Kdeconnect I had to specifically disable “Force Block Incoming Connections” for that one, too.

Hi~

I did this:

# [08:32:25] ~ took 35s $ sudo ufw status verbose
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), disabled (routed)
New profiles: skip

To                         Action      From
--                         ------      ----
1714:1764/tcp              ALLOW IN    192.168.50.0/24
1714:1764/udp              ALLOW IN    192.168.50.0/24

# [08:32:48] ~ $ sudo ufw disable
Firewall stopped and disabled on system startup
# [08:32:56] ~ $ sudo ufw status verbose
Status: inactive
# [08:33:01] ~ $ killall kdeconnectd && kdeconnect-cli --refresh

After that, I open kdeconnect, but still cannot detect android devices. While both android devices can connect to each other. So any wrong step in my operations? Thank you any way.

Are you sure that both devices (PC and Android) are on the same network?
And according to your netcat, your network is 192.168.50.x. Normally, the local network is 192.168.1.x. Do you have a router?

See this post on kde discuss

Yes, I have a router. My PC connects to the router by cable. Android devices connect to the router by WiFi. The IP address of all devices lies in 192.168.50.x. I read this post but it doesn’t work for me. It is confusing. Thanks for your attention :folded_hands:, I’ll keep searching solutions, and update when I find solution.

PS: I came from Manajro several months ago, and never met this problem before. It is realy weird. :joy: