I am trying to set up KDE Connect between a machine running Linux Mint and my Android-device. It does not show up, and it turns out I don’t receive any response if I ping it, and I have the same issue trying to ping the machine from my Android device (from Termux). I’ve tried two different Android devices, but no luck.

This is not an issue with two other machines I have. Both have KDE Connect setup and I can ping the phone just fine, and I can also ping from the phone. They’re all connected to the same VLAN. I can also ping from this machine to the other machines. ufw is disabled.

What could be the issue here?

EDIT: Connection established suddenly after installing and running iptraf.

You are viewing a single thread.
View all comments View context
3 points

Which version of KDEConnect do you run in Linux Mint? Seems like they package an old version from what I gather when searching for answers:
https://discuss.kde.org/t/can-not-pair-android-phone-and-linux-mint-21-1-desktop-with-kde-connect/1455
https://old.reddit.com/r/linux/comments/1b5fvay/how_do_users_of_mint_or_other_debianbased_distros/

Are your other machines running distros with more up to date repositories?

permalink
report
parent
reply
2 points
*

I’ll look closer into this when I’m back at the computer in about an hour. In the post on the KDE forum, they seem to get an error complaining about the version though, while in my case they don’t show up at all when I attempt to pair. I’ve checked the things listed on the KDE Connect wiki, but those checks pass.

EDIT: UDP discovery was turned off on my phone, and turning it on allowed connection. All is good now!

permalink
report
parent
reply
3 points

Sweet! Here comes a random tidbit now that your problem is solved.

Easy screen mirroring of android to linux:
Prereqs:

  1. Setup DHCP to always assign the same IP to the phone.
  2. Install adb and scrcpy on the Linux machine.
  3. Allow the linux machine to usb debug the phone.
  4. Allow wireless debugging in the phone settings.

.bashrc function:
#Connect to Android and view phone screen
#Tip: If using PIN on lock screen you can unlock by entering PIN + Enter even if screen is black
function phoneconnect(){
sudo adb start-server
adb tcpip 2233
adb connect <phoneIP>:2233
scrcpy
}

Simply write phoneconnect in terminal when both devices are accessible on the LAN and you can remote control your phone. Some applications will blacken the screen on the computer if sensitive data is shown.

permalink
report
parent
reply
3 points

Cheers, that’s pretty cool! I’ve looked into scrcpy before, but never got around to testing it. The way you present it is super easy, so I will definitely give this a shot!

Regarding my problem, it seems it wasn’t as fixed as I thought :p The connection issue described in the original post still comes once in a while, not sure what triggers it, but it usually resolves if I ping the device and run iptraf to monitor the traffic. Probably superstitious, seems weird to me that it should fix it. It also happened once between my laptop and my new machine, so it was not isolated to the phone after all.

permalink
report
parent
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 8.3K

    Monthly active users

  • 6.3K

    Posts

  • 173K

    Comments