SOCKS5: Invalid argument #16797

Open
opened 2026-02-22 03:25:37 -05:00 by deekerman · 3 comments
Owner

Originally created by @angrynode on GitHub (Apr 21, 2025).

qBittorrent & operating system versions

qBittorrent: 5.0.4 x64
Operating system: Endeavour OS
Qt: 6.8.2
libtorrent: 2.0.11.0

What is the problem?

When using a SOCKS5 proxy via SSH, it seems like nothing is proxied. The DHT does not find nodes and downloads don't start. I did not try with torrent files with explicit trackers.

Steps to reproduce

No response

Additional context

No response

Log(s) & preferences file(s)

My logs are filled with:

(W) 2025-04-21T20:33:50 - Erreur du proxy SOCKS5. Adresse : [::1]:1337. Message : « Argument invalide ».

Which translates to SOCKS5 proxy Error. Address: [::1]:1337. Message: "Invalid argument".

Originally created by @angrynode on GitHub (Apr 21, 2025). ### qBittorrent & operating system versions qBittorrent: 5.0.4 x64 Operating system: Endeavour OS Qt: 6.8.2 libtorrent: 2.0.11.0 ### What is the problem? When using a SOCKS5 proxy via SSH, it seems like nothing is proxied. The DHT does not find nodes and downloads don't start. I did not try with torrent files with explicit trackers. ### Steps to reproduce _No response_ ### Additional context _No response_ ### Log(s) & preferences file(s) My logs are filled with: > (W) 2025-04-21T20:33:50 - Erreur du proxy SOCKS5. Adresse : [::1]:1337. Message : « Argument invalide ». Which translates to `SOCKS5 proxy Error. Address: [::1]:1337. Message: "Invalid argument".`
Author
Owner

@HanabishiRecca commented on GitHub (Apr 21, 2025):

When using a SOCKS5 proxy via SSH, it seems like nothing is proxied. The DHT does not find nodes and downloads don't start.

Of course DHT doesn't work. Because DHT uses UDP, but SSH only supports TCP tunnels.
You need some other proxy solution which supports UDP.

@HanabishiRecca commented on GitHub (Apr 21, 2025): > When using a SOCKS5 proxy via SSH, it seems like nothing is proxied. The DHT does not find nodes and downloads don't start. Of course DHT doesn't work. Because DHT uses UDP, but SSH only supports TCP tunnels. You need some other proxy solution which supports UDP.
Author
Owner

@angrynode commented on GitHub (Jun 19, 2025):

You need some other proxy solution which supports UDP.

now i understand this. But it should be visible in GUI settings to avoid confusion dont you think?

@angrynode commented on GitHub (Jun 19, 2025): > You need some other proxy solution which supports UDP. now i understand this. But it should be visible in GUI settings to avoid confusion dont you think?
Author
Owner

@HanabishiRecca commented on GitHub (Jun 19, 2025):

Meh, regular users don't use SSH tunnels. But ones who do should be smart enough to figure that out.
Also there could be many other protocols with the same issue, we are not a wiki division to describe them. Learning capabilities of a protocol is responsibility of ones who use it.

@HanabishiRecca commented on GitHub (Jun 19, 2025): Meh, regular users don't use SSH tunnels. But ones who do should be smart enough to figure that out. Also there could be many other protocols with the same issue, we are not a wiki division to describe them. Learning capabilities of a protocol is responsibility of ones who use it.
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#16797
No description provided.