SUMMARY My settings UDP port keeps changing. And it refuses to change after I start the application. Already tried to stop all torrents before making changes etc. The help tooltip mentions upnp, but i don't see options to disable or use that. STEPS TO REPRODUCE 1. open Ktorrent. Set "UDP tracker port" to 1234 2. close it. 3. open again OBSERVED RESULT UDP port changes to something random, like 57733 EXPECTED RESULT UDP port setting remain the same 1234. SOFTWARE/OS VERSIONS KDE Plasma Version: 5.27.10 KDE Frameworks Version: 5.113.0 Qt Version: 5.15.11 Kernel Version: 6.6.8 (64-bit) Graphics Platform: Wayland ADDITIONAL INFORMATION
Just to make sure, are you pressing Apply after changing the setting?
Correct. Happens with both "ok" and "appply". Still using release 23.08.4, the UDP port change does work depending on the network i'm at. I looked at the code and it should not make any difference. I do not have any pnp plugin enabled! (only plugin enabled is "information widget" which is included with the regular release) only thing that could be impacting my settings is https://invent.kde.org/network/ktorrent/-/blob/master/libktcore/interfaces/functions.cpp#L89 but it doesn't seem to be the case.
Please could you open the file ~/.config/ktorrentrc and look for the section [downloads]. When you change the UDP port there should be an entry called "udpTrackerPort". Then close KTorrent and check if this entry has changed. Then open KTorrent and see if it has changed again. Hopefully this will help us figure out at what point KTorrent is ignoring the setting.