Use direct connection for tracker and use proxy for peer connections #14531

Open
opened 2026-02-22 01:09:56 -05:00 by deekerman · 7 comments
Owner

Originally created by @syphyr on GitHub (Apr 19, 2023).

Suggestion

Please add proxy option to use direct connection with tracker and proxy with peer connections.

Use case

Some trackers are udp only but the available proxy does not support udp connections. I would like to make tcp peer connections with proxy and use direct connection to connect to udp tracker.

Extra info/examples/attachments

No response

Originally created by @syphyr on GitHub (Apr 19, 2023). ### Suggestion Please add proxy option to use direct connection with tracker and proxy with peer connections. ### Use case Some trackers are udp only but the available proxy does not support udp connections. I would like to make tcp peer connections with proxy and use direct connection to connect to udp tracker. ### Extra info/examples/attachments _No response_
Author
Owner

@glassez commented on GitHub (Apr 19, 2023):

AFAIK, libtorrent allows to proxy either trackers only or both trackers+peers. @arvidn?

@glassez commented on GitHub (Apr 19, 2023): AFAIK, libtorrent allows to proxy either trackers only or both trackers+peers. @arvidn?
Author
Owner

@syphyr commented on GitHub (Apr 20, 2023):

So this would require a change in the libtorrent library?

@syphyr commented on GitHub (Apr 20, 2023): So this would require a change in the libtorrent library?
Author
Owner

@glassez commented on GitHub (Apr 20, 2023):

So this would require a change in the libtorrent library?

Yes.

@glassez commented on GitHub (Apr 20, 2023): > So this would require a change in the libtorrent library? Yes.
Author
Owner

@syphyr commented on GitHub (Apr 24, 2023):

I created an issue with libtorrent here:
https://github.com/arvidn/libtorrent/issues/7397

Just as a test, I forced proxy_tracker_connections in libtorrent to always be false, which fixed the problem with connecting to the udp tracker, but there must be more changes needed in libtorrent because then the peer connection would not work. Somehow, the peer connection also needs to be forced while proxy_tracker_connections is false. Any suggestions, even dirty hacks, are welcome just to get a proof of concept.

@syphyr commented on GitHub (Apr 24, 2023): I created an issue with libtorrent here: https://github.com/arvidn/libtorrent/issues/7397 Just as a test, I forced `proxy_tracker_connections` in libtorrent to always be false, which fixed the problem with connecting to the udp tracker, but there must be more changes needed in libtorrent because then the peer connection would not work. Somehow, the peer connection also needs to be forced while `proxy_tracker_connections` is false. Any suggestions, even dirty hacks, are welcome just to get a proof of concept.
Author
Owner

@evilblade666 commented on GitHub (Aug 25, 2023):

I want VERY much to see this separation also! Otherwise I have to constantly turn the proxy on and off in settings.
If it's enabled - I don't get any peers and when it's off - my ISP detects that I'm using torrent and limits the speed to like 2kb/s :(

@evilblade666 commented on GitHub (Aug 25, 2023): I want VERY much to see this separation also! Otherwise I have to constantly turn the proxy on and off in settings. If it's enabled - I don't get any peers and when it's off - my ISP detects that I'm using torrent and limits the speed to like 2kb/s :(
Author
Owner

@Amadeus- commented on GitHub (Mar 2, 2024):

I would like to add my support for this feature as well. It seems necessary in this day and age, when using private trackers.

@Amadeus- commented on GitHub (Mar 2, 2024): I would like to add my support for this feature as well. It seems necessary in this day and age, when using private trackers.
Author
Owner

@xavier2k6 commented on GitHub (May 25, 2025):

ANNOUNCEMENT!

For anybody coming across this "Feature Request" & would like/love to see a potential implementation in the future!
Here are some options available to you:

  1. Please select/click the 👍 &/orreactions in the original/opening post of this ticket.

  2. Please feel free (If you have the "skillset") to create a "Pull Request" implementing what's being requested in this ticket.
    (new/existing contributors/developers are always welcome)


DO:

  • Provide constructive feedback.
  • Display how other projects implemented same/similar etc.

DO NOT:

  • Add a "Bump", "me too", "2nd/3rd" etc. or "criticizing" comment(s).
    (These will be disregarded/hidden as "spam/abuse/off-topic" etc. as they don't provide anything constructive.)
@xavier2k6 commented on GitHub (May 25, 2025): ## ANNOUNCEMENT! For anybody coming across this **_"Feature Request"_** & would like/love to see a potential implementation in the future! **Here are some options available to you:** 1. Please select/click the 👍 **&/or** ❤ `reactions` in the original/opening post of this ticket. 2. Please feel free _(If you have the "skillset")_ to create a **_"Pull Request"_** implementing what's being requested in this ticket. **_(new/existing contributors/developers are always welcome)_** ____ **DO:** * Provide constructive feedback. * Display how other projects implemented same/similar etc. **DO NOT:** * Add a "Bump", "me too", "2nd/3rd" etc. or "criticizing" comment(s). **(These will be disregarded/hidden as "spam/abuse/off-topic" etc. as they don't provide anything constructive.)**
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/qBittorrent#14531
No description provided.