Connect Android to Linux Desktop with KDE Connect
In this article
KDE Connect lets your Android phone and Linux desktop talk to each other over Wi-Fi: share files both ways, send and receive SMS, use your phone as a remote control for presentations, get notifications mirrored on your desktop, and even share the clipboard. It works with most Linux desktops, not just KDE Plasma. You need both devices on the same local network, and you need the KDE Connect app installed on your phone (from the Google Play Store or F-Droid) and the corresponding package on your Linux machine.
What You'll Need
- An Android phone (Android 5.0 or newer is typical, but check the app's requirements).
- A Linux desktop or laptop with Wi-Fi or Ethernet.
- Both devices on the same local network (same router, same Wi-Fi SSID, or one wired and one wireless on the same LAN).
- Administrative rights on your Linux machine to install packages (you'll use sudo).
- Optional: a KDE account if you want to use the "find my device" feature over the internet, but it's not needed for basic pairing.
Step-by-Step
- Install KDE Connect on your Android phone. Open the Google Play Store (or F-Droid) and search for "KDE Connect". Install the official app by KDE. If you're on a phone with a custom ROM that blocks background activity, you may need to allow the app to run in the background later.
- Install KDE Connect on your Linux desktop. Open your distribution's package manager. For example, on Ubuntu or Debian, run
sudo apt install kdeconnect. On Fedora, usesudo dnf install kdeconnect. On Arch, usesudo pacman -S kdeconnect. If you're on a non-KDE desktop like GNOME, you can still install the same package; the app will appear as an indicator icon in your system tray. If your distribution doesn't have it in the official repos, you can download the AppImage from the KDE website, but the official repo version is preferred. - Launch KDE Connect on your desktop. After installation, find "KDE Connect" in your application menu. It usually starts in the background and shows an icon in the system tray (top-right or bottom-right). If you don't see it, run
kdeconnect-indicatorfrom a terminal to start it manually. - Open KDE Connect on your phone. Tap the app icon. It will automatically scan for nearby devices on the same network. You should see your computer's name listed under "Available devices". If you don't see it, make sure both devices are on the same Wi-Fi network and that your firewall isn't blocking the necessary ports (see Troubleshooting).
- Pair the devices. On your phone, tap your computer's name. A pairing request will appear on your desktop. Accept it by clicking "Accept" or "Pair". On some versions, you may need to confirm a PIN on both devices. Once paired, the device will move to the "Paired devices" section on your phone.
- Test the connection. On your phone, tap the paired device to open the plugin list. Toggle on the features you want, such as "Clipboard sync", "Notification sync", "Share and receive files", and "Remote input". On your desktop, right-click the KDE Connect tray icon and select your phone to see the same options. Try sending a file from your phone to your desktop: in the KDE Connect app, tap "Send a file", choose a file, and it should appear in your Downloads folder (or the folder you set in the desktop app's settings).
- Configure preferences (optional). On your desktop, right-click the tray icon and select "Configure...". Here you can change the storage location for received files, set a custom device name, and adjust which plugins are active. On your phone, tap the gear icon next to the paired device to adjust per-device settings like notification filtering.
Common Mistakes
- Both devices not on the same network. If your phone is on mobile data or a guest Wi-Fi, they won't see each other. Make sure both are on the same Wi-Fi SSID, or your phone is on the same LAN as your wired desktop.
- Firewall blocking ports. KDE Connect uses UDP ports 1714-1764 for discovery and TCP ports 1714-1764 for communication. If you have a firewall like UFW or firewalld, you need to allow these ports. For UFW, run
sudo ufw allow 1714:1764/udpandsudo ufw allow 1714:1764/tcp. For firewalld, usesudo firewall-cmd --permanent --add-port=1714-1764/tcp --add-port=1714-1764/udpthen reload. - Not installing the desktop package. Some users only install the phone app and expect it to work. You must install the desktop component as well.
- Background restrictions on Android. Some phone manufacturers (Xiaomi, Huawei, Samsung) aggressively kill background apps. Go to your phone's battery settings and allow KDE Connect to run in the background, and disable any battery optimization for it.
Tips
- Use the "Remote input" plugin to control your mouse and keyboard from your phone. It's handy when you're presenting and want to advance slides from across the room.
- Enable "Notification sync" to see phone notifications on your desktop. You can even reply to SMS from the desktop notification popup if you enable the "SMS" plugin.
- Clipboard sync works both ways: copy on your phone, paste on your desktop, and vice versa. It's instant and very useful.
- If you have multiple computers, you can pair your phone to all of them. The phone app lets you switch between them.
- For file transfers, you can also right-click a file in your file manager (in Dolphin or Nautilus with the extension) and choose "Send to phone".
Troubleshooting
If the devices don't see each other, try these in order:
- Check the network. Verify both devices are on the same Wi-Fi. On your phone, forget the Wi-Fi and reconnect. On your desktop, confirm you're connected to the same router.
- Restart both apps. Close KDE Connect on your phone (swipe it away from recent apps) and reopen it. On your desktop, right-click the tray icon and select "Quit", then start it again from the menu or terminal.
- Allow firewall ports. As described above, open ports 1714-1764 on your Linux firewall. If you're using a router with a built-in firewall, ensure it's not blocking local traffic (unlikely, but possible with guest networks).
- Check for IP conflicts. If your router assigns IP addresses in different subnets to wired and wireless devices, they may not discover each other. Check your router's DHCP settings and make sure it's using one subnet (e.g., 192.168.1.x).
- Update everything. Make sure both the phone app and the desktop package are up to date. Old versions may have bugs that were fixed later.
- Try manual pairing. On your phone, tap the "Add device by IP" option (usually in the overflow menu) and enter your desktop's IP address. You can find it by running
ip addrorhostname -Ion your Linux machine. - If pairing fails with a PIN mismatch, restart both apps and try again. Sometimes the PIN prompt times out.
If nothing works, uninstall and reinstall both apps. This clears any corrupted settings. You won't lose any data, but you'll need to re-pair the devices.
Frequently Asked Questions
Does KDE Connect work on GNOME or other desktops?
Yes, it works on GNOME, XFCE, Cinnamon, and most others. It uses a system tray icon, which may require an extension like AppIndicator on GNOME. If you don't see the icon, install the extension "AppIndicator and KStatusNotifierItem Support" from your distribution's package manager.
Can I use KDE Connect over the internet?
Yes, but it requires a KDE account and setting up the "Find my device" feature. In the phone app, go to Settings > KDE Account and sign in. Then on your desktop, in the KDE Connect settings, enable "Find my device". This allows you to locate your phone and send a ping, but file transfer and other features typically require being on the same LAN.
Why can't I send SMS from my desktop?
You need to enable the "SMS" plugin on both devices. On your phone, tap the paired device and toggle on "SMS". On your desktop, right-click the tray icon, select your phone, and ensure "SMS" is checked. Also, your phone must be the one with the SIM card that receives texts—it won't work with a tablet or a phone without SMS capability.
Is KDE Connect safe to use on public Wi-Fi?
It's generally safe because the pairing process uses a shared secret (the PIN). However, on public networks, other users might see your device name. It's best to use it on your home network or a trusted network. If you're concerned, you can disable discovery after pairing by turning off "Discoverable" in the phone app's settings.
How do I send a file from my desktop to my phone?
Right-click the file in your file manager and choose "Send to phone" (if you have the integration installed). Alternatively, right-click the KDE Connect tray icon, select your phone, then "Send a file". On your phone, the file will appear in the Downloads folder or the folder you set in the desktop app's settings.
Can I use KDE Connect to mirror my phone screen?
No, KDE Connect does not do full screen mirroring. It offers "Remote input" (controlling the desktop from the phone) and "Presentation" (using the phone as a touchpad), but not phone screen mirroring. For that, you'd need a separate tool like scrcpy.