You are not logged in.

#1 2019-05-25 03:19:05

Maerman
Member
Registered: 2019-05-25
Posts: 13

KDE Connect cannot find my devices

So I am on a relatively fresh install with the Plasma desktop, and I cannot get KDE Connect to find my Android devices (or vice versa). I have opened all the required ports as explained here (I am running firewalld as a frontend for iptables), I have tried disabling my firewall as described here, and I have tried using the git version from the AUR.

Running

kdeconnect-cli -l

returns simply

0 devices found

So it appears that the program itself is working; I am probably missing something painfully obvious in terms of my network setup.

I am running LineageOS and Resurrection Remix (based on LineageOS) on my two Android devices.

I'll update this post to include any information I should have included from the start.

Thanks in advance.

Offline

#2 2019-05-27 10:02:39

gerald82
Member
From: The known universe
Registered: 2011-03-25
Posts: 83

Re: KDE Connect cannot find my devices

Did you make sure the two devices are in the same network?
If you have your desktop in the local LAN and the phone is connected to the mobile network instead of your local network, then the two cannot communicate directly.
Can you try if they can ping each other? The two devices need to be in the same IP network.

Offline

#3 2019-05-27 14:18:03

sincomil
Member
Registered: 2018-02-13
Posts: 118

Re: KDE Connect cannot find my devices

Did you check you firewall config?
You have to make sure that your tcp/udp port 1716 is opened

Offline

#4 2019-05-27 14:38:33

sincomil
Member
Registered: 2018-02-13
Posts: 118

Re: KDE Connect cannot find my devices

gerald82 wrote:

The two devices need to be in the same IP network.

Actually it is not required. Because you can add you computer by entering its IP, only required  thing is reachable tcp/udp port 1716 on target host

Offline

#5 2019-05-28 00:26:45

Maerman
Member
Registered: 2019-05-25
Posts: 13

Re: KDE Connect cannot find my devices

gerald82 wrote:

Did you make sure the two devices are in the same network?

All my devices are connected to the same network, yes. So that is definitely not the issue.

sincomil wrote:

Did you check you firewall config?
You have to make sure that your tcp/udp port 1716 is opened

I'm not sure where to find a config file for iptables; I'll update once I locate it. But I did run

sudo iptables -I INPUT -i <yourinterface> -p udp --dport 1714:1764 -m state --state NEW,ESTABLISHED -j ACCEPT
sudo iptables -I INPUT -i <yourinterface> -p tcp --dport 1714:1764 -m state --state NEW,ESTABLISHED -j ACCEPT

sudo iptables -A OUTPUT -o <yourinterface> -p udp --sport 1714:1764 -m state --state NEW,ESTABLISHED -j ACCEPT
sudo iptables -A OUTPUT -o <yourinterface> -p tcp --sport 1714:1764 -m state --state NEW,ESTABLISHED -j ACCEPT

as per these instructions. It is my understanding that those commands are intended to open ports in the range 1714 to 1764 UDP and TCP.

Edit: in the commands above, I did replace <yourinterface> with my interface. So that's also not the issue.

Last edited by Maerman (2019-05-28 04:27:18)

Offline

#6 2024-05-04 09:01:15

tknv
Member
Registered: 2024-05-04
Posts: 2

Re: KDE Connect cannot find my devices

I guess maybe the `kdeconnectd` run on IPv6 only?

sudo netstat -nlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
...     
tcp6       0      0 :::1716                 :::*                    LISTEN      3605/kdeconnectd    
...
udp6       0      0 :::1716                 :::*                                3605/kdeconnectd    
... 

Then can add link local addr of IPv6 the PC(which is running KDE). E.g. fe80:....

Offline

#7 2024-05-04 09:11:04

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,544
Website

Re: KDE Connect cannot find my devices

Please don't necrobump, OP hasn't returned to the forums since 2021, they're unlikely to still be looking for a solution to this.

https://wiki.archlinux.org/title/Genera … bumping%22

Closing.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB