qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
26.92k stars 3.88k forks source link

qbittorrent-nox not downloading/seeding on IPv6 when Ip All Addresses #19018

Open pimpf2k opened 1 year ago

pimpf2k commented 1 year ago

qBittorrent & operating system versions

Ubuntu 22.04 qBittorrent-nox 4.5.2 Qt: 5.15.3
Libtorrent: 2.0.8.0
Boost: 1.74.0
OpenSSL: 3.0.2
zlib: 1.2.11

What is the problem?

Torrents are stuck at "Stalled" and finished torrents aren't getting any connections to seed.

Steps to reproduce

It don't work, when it is set to:

Advanced Settings set to: Network Interface -> eth0 Optional Ip Address to bind to -> All addresses

It worked, when it set to: Optional Ip Address to bind to -> All IPv6 addresses

But then no IPv4 addresses work anymore.

Additional context

No response

Log(s) & preferences file(s)

No response

lucasmz-dev commented 1 year ago

Is this a NAT64 network? Yeah... No BitTorrent client supports NAT64 yet AFAIK.. (Unfortunately)

This is related to #14690

This seems a bit different though because you're saying that not even IPv6 peers when found work when all addresses are being announced.

qBittorrent would work in an environment that uses CLAT, unfortunately OSes aren't really implementing it outside of a few cases.

Windows has support for example, but only for a specific type of connection, AFAIK apple does this best, android only uses it for 4G networks.

Since you're using Linux, it's possible you might be able to get CLAT working, but thats on you. qBittorrent should definitely just deal with this automatically. It's a bit hard though because there are different formats DNS64 can use.

pimpf2k commented 1 year ago

No thats not NAT64 Network. Its a DUALStack Addresses from Provider, Ports are forward to IPv4 and IPv6. That's the only thing I change in the qBirront client: From all IP addresses to All IPv6 addresses, then it works Only IPv6 but without IPv4. Would be nice if the whole thing also works with IPv4 at the same time.

liusen373 commented 7 months ago

AlmaLinux 9.3 (Shamrock Pampas Cat) qBittorrent-nox 4.6.2

I'm experiencing this a similar bug.

Network Interface -> wlan0 Optional Ip Address to bind to -> All addresses

Everything works fine.

Network Interface -> Any Interface Optional Ip Address to bind to -> All addresses

Cant receive any incomming IPv6 connections.

In both cases qbittorrent listens correctly on the corresponding IPv6 port, and I was able to connect from another IPv6 address using nc or something like that.

Edit: cant reproduce after upgrading to 4.6.3