Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

KDE Connect: Control Linux PC from Android Phone

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

KDE Connect lets you control your Linux PC from your Android phone over your local Wi-Fi network. You can use your phone as a remote mouse and keyboard, run commands, transfer files, and see notifications. To get started, you need both devices on the same network, KDE Connect installed on your phone (from the Google Play Store or F-Droid), and the KDE Connect package installed on your Linux PC (usually available through your distribution's package manager).

What You'll Need

  • An Android phone (Android 5.0 or newer) with KDE Connect installed from an official source.
  • A Linux PC with KDE Connect installed. Most distributions have it in their repositories; for example, on Debian/Ubuntu: sudo apt install kdeconnect, on Fedora: sudo dnf install kdeconnect, on Arch: sudo pacman -S kdeconnect.
  • Both devices on the same local network (same Wi-Fi or wired connection to the same router).
  • If your PC uses a firewall, allow incoming connections on UDP and TCP ports 1714-1764 for KDE Connect.

Step-by-Step

  1. 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. Do not use unofficial clones or modified APKs.
  2. Install KDE Connect on your Linux PC. Use your distribution's package manager. For example, on Ubuntu/Debian, run sudo apt install kdeconnect. On Fedora, sudo dnf install kdeconnect. On Arch, sudo pacman -S kdeconnect. If you use a different distribution, search for “kdeconnect” in your software center.
  3. Start KDE Connect on your PC. After installation, launch KDE Connect from your application menu. You may also need to start the background service; on most systems, the app does this automatically. If you're on a desktop environment that doesn't auto-start it, you can run kdeconnect-indicator from a terminal.
  4. Open KDE Connect on your Android phone. The app will scan your local network for available devices. Your PC should appear in the list of available devices. If it doesn't, make sure both devices are on the same Wi-Fi network and that your PC's firewall allows KDE Connect traffic.
  5. Pair the devices. On your phone, tap your PC's name in the list. A pairing request will appear on both devices. Accept the request on your PC (a dialog will appear) and on your phone. After pairing, the devices are connected.
  6. Enable the plugins you need. On your phone, tap the paired PC's name to open its details. You'll see a list of plugins (e.g., “Remote input”, “Clipboard sync”, “Notifications sync”). Turn on the ones you want. For controlling the PC, the “Remote input” plugin is essential—it gives you a virtual mouse and keyboard. Also enable “Run commands” to execute predefined commands from your phone.
  7. Use your phone as a remote mouse and keyboard. With the “Remote input” plugin enabled, open the KDE Connect app on your phone, tap your PC's name, and then tap “Remote input”. Your phone screen becomes a touchpad. Move your finger to move the mouse cursor. Tap to click. Use the keyboard icon to type. You can also use two-finger scrolling and right-click with a long press or a dedicated button.
  8. Run commands from your phone. In the KDE Connect app, go to your PC's details and tap “Run commands”. You'll see a list of default commands (like “Lock”, “Logout”, “Reboot”). To add your own, on your PC, open KDE Connect settings, go to the “Run commands” plugin, and add a new command with a name and the shell command to execute. For example, add a command named “Open Firefox” with the command firefox. Then on your phone, tap that command to run it.
  9. Transfer files and share links. From your phone's file manager, you can share a file to KDE Connect and choose your PC to send it. Similarly, from your PC, you can right-click a file and choose “Send to phone”. You can also share a URL from your phone's browser to open it on your PC's default browser.
  10. Use the clipboard sync. If you enable the “Clipboard sync” plugin, copying text on your phone will make it available on your PC's clipboard, and vice versa. This is handy for copying passwords or URLs.

Common Mistakes

  • Not being on the same network. Both devices must be on the same local network. If your phone is on mobile data or a different Wi-Fi, they won't see each other.
  • Firewall blocking ports. If your Linux firewall is active, it may block KDE Connect. Ensure UDP and TCP ports 1714-1764 are allowed. On Ubuntu, you can check with sudo ufw status and allow with sudo ufw allow 1714:1764/udp and sudo ufw allow 1714:1764/tcp.
  • Not starting the KDE Connect service on PC. Some systems need the background service running. If the app doesn't auto-start, run kdeconnect-indicator or kdeconnectd from a terminal.
  • Pairing not accepted. Make sure you click “Accept” on both devices. If the pairing request doesn't appear on your PC, check that the notification is not hidden.
  • Using a VPN. A VPN on your phone or PC can isolate the devices on different virtual networks. Disable VPNs temporarily to test.

Tips

  • Keep both KDE Connect apps updated to the latest version for bug fixes and new features.
  • For a more seamless experience, consider enabling “Auto-connect” on your PC's KDE Connect settings so it automatically reconnects when your phone is on the same network.
  • Use the “Find my device” plugin to make your phone ring if you misplace it.
  • If you have multiple PCs, you can pair them all and switch between them from the phone app.
  • For presentations, the remote input works well as a slideshow remote—just use the arrow keys on your phone's virtual keyboard.

Troubleshooting

If the devices don't see each other, try these in order:

  1. Restart both apps. Close KDE Connect on both your phone and PC, then reopen them.
  2. Check the network. Ensure both devices are on the same Wi-Fi network. You can check your phone's Wi-Fi settings and your PC's network connection.
  3. Disable firewall temporarily. As a test, disable your PC's firewall (e.g., sudo ufw disable on Ubuntu) and see if they connect. If they do, re-enable the firewall and add the port rules.
  4. Check if the service is running. On your PC, run ps aux | grep kdeconnect to see if the daemon is active. If not, start it with kdeconnectd.
  5. Re-pair. Unpair the devices in the app and pair them again.
  6. Update everything. Ensure both KDE Connect apps are up to date. On Linux, update your system packages.
  7. Check for network isolation. Some routers have “AP isolation” or “Client isolation” enabled, which prevents devices from communicating. Disable that in your router settings.

If the remote input is laggy, make sure you're on a 5GHz Wi-Fi band if possible, and close other bandwidth-heavy apps on your phone.

Frequently Asked Questions

Can I use KDE Connect over the internet, not just local Wi-Fi?

KDE Connect is designed for local networks. For remote access over the internet, you'd need a VPN that puts both devices on the same virtual network, but that's not officially supported by KDE Connect.

Does KDE Connect work with non-KDE desktop environments like GNOME or XFCE?

Yes, KDE Connect works on any Linux desktop. It doesn't require KDE Plasma. The app runs as a standalone service.

Can I control my PC's volume or media playback from my phone?

Yes, the “Media control” plugin in KDE Connect lets you see what's playing and control playback (play/pause, next/previous) from your phone.

Is KDE Connect available for iOS?

There is an official KDE Connect app for iOS, but it has fewer features due to iOS limitations. This guide is for Android, which has full functionality.

Can I use my phone as a game controller?

KDE Connect doesn't have a dedicated game controller mode. However, the remote input can be used for some games, but it's not ideal for fast-paced gaming.

How do I uninstall KDE Connect?

On Android, uninstall the app like any other. On Linux, use your package manager, e.g., sudo apt remove kdeconnect on Debian/Ubuntu.