qBT announcing port as 1 to DHT even when "anonymous mode" is turned off #14602
Labels
Network
Issues related to network connectivity
Not an issue
User error, problem unrelated to qBittorrent, feature already implemented, etc
Please provide the following information
qBittorrent version and Operating System
(4.3.3) Windows 10 and Ubuntu 18.04
If on linux, libtorrent-rasterbar and Qt version
(type here)
What is the problem
qBT is announcing port as 1 to DHT in addition to my actual external port. I can confirm that "anonymous mode" is turned off under Tools>Options>BitTorrent. Problem here is that most clients doesn't allow multiple connections to/from same IP(including qBT) by default. So when a remote client obtains peer list from DHT, it sees two peers for same ip (one with correct external port and other with port as '1'). Now there is only a 50% chance that it connects to my client correctly.
I tested using qBT as remote client. My observation is as below. qBT always tries connecting using uTP first then using TCP. It tries one peer for uTP and other for TCP and the first peer to connect is chosen randomly.
Situation #1 - Desired
Situation #2 - Undesired
What is the expected behavior
Only my actual external port should be announced to DHT.
Steps to reproduce
Can be observed using any torrents with DHT enabled in settings.
Extra info(if any)
The text was updated successfully, but these errors were encountered: