QBittorent is Not listening on the selected port when using a socks5 proxy set up #15950

Open
opened 2026-02-22 02:39:17 -05:00 by deekerman · 1 comment
Owner

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>

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](https://github.com/qbittorrent/qBittorrent/issues/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>`
Author
Owner

@ostrolucky commented on GitHub (Jul 27, 2025):

Related: https://xcel.me/qbittorrent-listening-on-port-while-using-proxy/

@ostrolucky commented on GitHub (Jul 27, 2025): Related: https://xcel.me/qbittorrent-listening-on-port-while-using-proxy/
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#15950
No description provided.