2

I have been trying to connect my phone to my Ubuntu PC (20.04). I installed the apps on both of my devices (installed KDE Connect from Snap on Ubuntu, and on the phone, I installed it from the Play Store). The problem is that the devices do not see each other (they are connected to the same internet). But when I installed the KDE Connect app on my Windows 11 PC, the phone gets detected and the Windows PC gets detected by the phone.

These are the things that I have tried:

  • Reinstall the KDE Connect app on both devices.
  • Disable the firewall on Ubuntu.
  • Looking at questions related to this (nothing worked)

Thanks in advance.

  • 2
    I guess you are using Ubuntu with GNOME shell, so could try to install the extension GSConnect: https://extensions.gnome.org/extension/1319/gsconnect Both are the same, but GSConnect it seems is more stable in the GNOME shell. – Edgar Magallon Sep 03 '22 at 02:12
  • @EdgarMagallon It won't let me download it. It keeps giving me the error: Although the GNOME Shell integration extension is running, native host connector is not detected. Refer to the documentation for instructions about installing connector. – Maheswar KARAKKATTU KISHOR KUM Sep 03 '22 at 23:31
  • @EdgarMagallon I also installed the chrome-gnome-shell (native host connector). It is still not working. – Maheswar KARAKKATTU KISHOR KUM Sep 03 '22 at 23:36
  • I never had those problems when I used GNOME, but according to this answer: https://askubuntu.com/questions/1107848/although-gnome-shell-integration-extension-is-running-native-host-connector-is You may have to install some dependencies besides the chrome-gnome-shell that you installed. – Edgar Magallon Sep 04 '22 at 18:11
  • @EdgarMagallon I found an easy solution. I will post an answer tomorrow. – Maheswar KARAKKATTU KISHOR KUM Sep 05 '22 at 10:01
  • Great! It will be very useful for other people – Edgar Magallon Sep 05 '22 at 18:42

1 Answers1

4

I added ip-address manually - not found. Then I opened the firewall with:

sudo iptables -I INPUT -p udp --dport 1714:1764 -j ACCEPT
sudo iptables -I INPUT -p tcp --dport 1714:1764 -j ACCEPT

that helped. Good luck!

  • 1
    Would be similar to sudo ufw allow proto tcp from 192.168.0.0/16 to any port 1714:1764 comment 'kdeconnect' (and for udp) – Pablo Bianchi Sep 15 '23 at 15:30