Bug 479054 - UDP port keeps changing
Summary: UDP port keeps changing
Status: REPORTED
Alias: None
Product: ktorrent
Classification: Applications
Component: general (show other bugs)
Version: 23.08.4
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-27 04:13 UTC by Gabriel Barros
Modified: 2024-02-04 21:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gabriel Barros 2023-12-27 04:13:02 UTC
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
Comment 1 Jack Hill 2024-01-26 14:36:23 UTC
Just to make sure, are you pressing Apply after changing the setting?
Comment 2 Gabriel Barros 2024-01-29 13:18:50 UTC
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.
Comment 3 Jack Hill 2024-02-04 21:34:27 UTC
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.