Summary: | KDEConnect does not work with firewall even though correct ports are unblocked | ||
---|---|---|---|
Product: | [Applications] kdeconnect | Reporter: | mike.iovine7 |
Component: | common | Assignee: | Albert Vaca Cintora <albertvaka> |
Status: | REPORTED --- | ||
Severity: | normal | CC: | andrew.g.r.holmes, chemobejk, chpchp20, eldav.rodrigues99, ol+kde, remilabelle |
Priority: | NOR | ||
Version First Reported In: | 25.08.0 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
mike.iovine7
2025-09-06 12:55:50 UTC
Forgot to mention: KDEConnect between my phone and both devices works fine even with the firewall up. It's only computer <-> computer connections that have issues. I believe my issue is similar to the one reported here. My laptop and PC are running Arch Linux with KDE Plasma 6.4.5. My laptop has kdeconnect 25.08.1-1 and firewalld 2.3.1-1 while PC only has kdeconnect 25.08.1-1 with no firewall. I have one zone "public" which should allow traffic to and from the kdeconnect service as seen below: public (default, active) target: default ingress-priority: 0 egress-priority: 0 icmp-block-inversion: no interfaces: wlan0 sources: services: dhcpv6-client kdeconnect ssh ports: protocols: forward: yes masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: I've learned through firewall-config that the kdeconnect service is allowed to use 1714-1764/tcp and 1714-1764/udp by default, and this matches what the Wiki says. With my laptop's firewall up, my laptop and PC cannot reach each other. Temporarily disabling firewalld seems to work until the next reboot. I have not tried sniffing my network with Wireshark yet, but adding ports 40000-50000/udp to the kdeconnect firewall config as mentioned in the bug report seems to solve this issue - I did this through firewall-config. This is my first time commenting in a KDE bug report, so apologies if this does not belong here 🙂 SOFTWARE/OS VERSIONS Linux/KDE Plasma: Arch Linux KDE Plasma Version: 6.4.5 KDE Frameworks Version: 6.18.0 Qt Version: 6.9.2 I encountered the same issue: mobile device -> PC works, PC <-> PC doesn't. After adding in firewalld under "Source Ports" 5353/udp, the ICMP error "administratively prohibited" disappears in Wireshark and KDE Connect works also for PC <-> PC. SOFTWARE/OS VERSIONS Operating System: Fedora Linux 42 KDE Plasma Version: 6.4.4 KDE Frameworks Version: 6.17.0 Qt Version: 6.9.1 kde-connect-25.08.0-1.fc42.x86_64 kdeconnectd-25.08.0-1.fc42.x86_64 kde-connect-libs-25.08.0-1.fc42.x86_64 |