mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-03-02 22:57:32 -05:00
QBittorent is Not listening on the selected port when using a socks5 proxy set up #15950
Labels
No labels
Accessibility
AppImage
Bounty
Build system
CI
Can't reproduce
Code cleanup
Confirmed bug
Confirmed bug
Core
Crash
Data loss
Discussion
Docker
Documentation
Duplicate
Feature
Feature request
Feature request
Feature request
Filters
Flatpak
GUI
Has workaround
I2P
Invalid
Libtorrent
Look and feel
Meta
NSIS
Network
Not an issue
OS: *BSD
OS: Linux
OS: Windows
OS: macOS
PPA
Performance
Project management
Proxy/VPN
Qt bugs
Qt6 compat
RSS
Search engine
Security
Temp folder
Themes
Translations
Triggers
Waiting diagnosis
Waiting info
Waiting upstream
Waiting web implementation
Watched folders
WebAPI
WebUI
autoCloseOldIssue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/qBittorrent#15950
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Masong19hippows on GitHub (Jul 30, 2024).
qBittorrent & operating system versions
Ubuntu 22.04 server edition on amd64
Qt: | 6.5.2
Libtorrent: | 2.0.10.0
Boost: | 1.76.0
OpenSSL: | 3.0.2
zlib: | 1.2.11
What is the problem?
The setting "Use proxy for peer connections" when a socks5 proxy is used, disables the listening tcp port for the specified port used for incoming connections. This was an issue before and has been addressed by qbittorrent poorly in 8718. Most vpn providers like protonvpn have a port forwarding protocol that you can use tools like natpmpc with and forward ports. This is what I am currently doing on a local machine and then using the socks5 protocol to serve outbound connections through a vpn connection to protonvpn.
I believe this should be properly addresses by qbittorrent and automatically disable the "Use UPnP / NAT-PMP port forwarding from my router" option while still listening on the specified tcp port. I don't believe this will have any negative affect if the end-user doesn't port forward with natpmpc
Steps to reproduce
Enable proxy in qbittorrent and input server details.
Enable the "Use proxy for peer connections" setting
Additional context
No response
Log(s) & preferences file(s)
The listening port before and after the setting was applied was tested using
sudo netstat -tupln | grep <port>@ostrolucky commented on GitHub (Jul 27, 2025):
Related: https://xcel.me/qbittorrent-listening-on-port-while-using-proxy/