KDE Connect would open and close firewall

KDE Connect doesn’t get connect to phone, if the computer has firewall. To make a hole to it you have do:

sudo ufw allow 1714:1764/udp
sudo ufw allow 1714:1764/tcp
sudo ufw reload

I think that those command should be in KDE Connect application. You could be able to open firewall with push button and close it again. So, the holes in firewall are open only when you use KDE Connect.

I don’t think this is really required. Holes in the firewall are fine since no other program is listening on the same ports. Leaving them open is fine imo.
Also it isnt the application’s responsibility to tinker with the firewall

1 Like

Hello, I’ve been experiencing issues with KDE Connect connections for a while now, and I can’t figure out the cause. Sometimes, on rare occasions, the connection is established, but then it quickly disconnects and I can’t reconnect. I’ve reported this several times, and I’ve seen other users experiencing the same issue. Despite several updates, the problem hasn’t been resolved. Therefore, I’m considering trying the method you suggested.