←back to thread

475 points snthd | 1 comments | | HN request time: 0.208s | source
Show context
roshin ◴[] No.45567872[source]
when it works it's amazing. but very often both my phone and laptop are connected to the same WiFi, yet kde connect can't see them. I can't figure out how to diagnose and solve that when it happens
replies(14): >>45568298 #>>45568302 #>>45574832 #>>45654362 #>>45654425 #>>45654451 #>>45654843 #>>45655274 #>>45655852 #>>45655866 #>>45655896 #>>45657950 #>>45661121 #>>45661674 #
jeroenhd ◴[] No.45654451[source]
It should work on any network where mDNS works and where TCP connections can be established. There's not much going on that's more complicated than that when it comes to device discovery.

Many VPN configurations break mDNS and other broadcasts (i.e. Chromecast, file shares, that kind of thing), though. A lot of "how to get started with WireGuard/OpenVPN/etc." guides stop the moment HTTP(S) connections work, but there's more to a functional network than that.

I found that I could get KDE Connect working on my buggy VPN profile by manually specifying remote IP addresses for devices on the other end of the VPN in the settings.

replies(1): >>45657436 #
aidenn0 ◴[] No.45657436[source]
Oh, so if I setup mDNS on my workstation KDE Connect will be more reliable? Kind of annoying since I DNS already works to resolve names.
replies(1): >>45658398 #
jeroenhd ◴[] No.45658398[source]
Your desktop probably already has mDNS set up, most user-friendly distros do it out of the box.

But it doesn't really matter, because KDE Connect implements its own sort-of mDNS system by itself, in the form of JSON broadcast across the local network on a standard port offering hostnames, services, and other metadata. Actual, real mDNS would require integration into the host's networking setup and that's too much to ask for clients like Android or iOS and you'd need to implement it manually in many other cases, so they kind of made their own mDNS. It also means you don't need root access to run KDE Connect on your device, which makes it viable on platforms like the Steam Deck.

To get KDE Connect working reliably, you need to make multicast traffic work reliably. Every network has its own restrictions when it comes to multicast so it's hard to know what specific tweaks your workstation needs. Having KDE Connect open on your phone, you should see packets coming in on your desktop on 255.255.255.255 on 1716/udp.

replies(1): >>45659029 #
1. aidenn0 ◴[] No.45659029[source]
1. I don't use a user-friendly distro

2. Thanks for that info; next time it fails to connect I'll take a look in wireshark.