aria2 / aria2

aria2 is a lightweight multi-protocol & multi-source, cross platform download utility operated in command-line. It supports HTTP/HTTPS, FTP, SFTP, BitTorrent and Metalink.
https://aria2.github.io/
GNU General Public License v2.0
35.84k stars 3.6k forks source link

Parallel IPv6 and IPv4 downloading #826

Open Manouchehri opened 7 years ago

Manouchehri commented 7 years ago

At the moment, downloading with both IPv6 and IPv4 doesn't seem to work well, since just the A record is used on every interface (which doesn't work for the IPv6 only interfaces).

laptop:~ dave$ aria2c -d /dev -o null "http://ipv6.proof.ovh.net/files/10Gio.dat"

01/08 04:29:25 [NOTICE] Downloading 1 item(s)
[#6e3d2c 8.5MiB/10GiB(0%) CN:16 DL:3.1MiB ETA:54m19s]
01/08 04:29:29 [ERROR] CUID#9 - Download aborted. URI=http://ipv6.proof.ovh.net/files/10Gio.dat
Exception: [AbstractCommand.cc:351] errorCode=1 URI=http://ipv6.proof.ovh.net/files/10Gio.dat
  -> [SocketCore.cc:507] errorCode=1 Failed to connect to the host 2001:41d0:2:876a::1, cause: Address family not supported by protocol family
[#6e3d2c 12MiB/10GiB(0%) CN:15 DL:3.2MiB ETA:51m54s]
01/08 04:29:29 [ERROR] CUID#7 - Download aborted. URI=http://ipv6.proof.ovh.net/files/10Gio.dat
Exception: [AbstractCommand.cc:351] errorCode=1 URI=http://ipv6.proof.ovh.net/files/10Gio.dat
  -> [SocketCore.cc:507] errorCode=1 Failed to connect to the host 2001:41d0:2:876a::1, cause: Address family not supported by protocol family
[#6e3d2c 15MiB/10GiB(0%) CN:14 DL:3.3MiB ETA:51m36s]
01/08 04:29:30 [ERROR] CUID#8 - Download aborted. URI=http://ipv6.proof.ovh.net/files/10Gio.dat
Exception: [AbstractCommand.cc:351] errorCode=1 URI=http://ipv6.proof.ovh.net/files/10Gio.dat
  -> [SocketCore.cc:507] errorCode=1 Failed to connect to the host 2001:41d0:2:876a::1, cause: Address family not supported by protocol family
[#6e3d2c 23MiB/10GiB(0%) CN:13 DL:3.5MiB ETA:47m45s]
01/08 04:29:32 [ERROR] CUID#11 - Download aborted. URI=http://ipv6.proof.ovh.net/files/10Gio.dat
Exception: [AbstractCommand.cc:351] errorCode=1 URI=http://ipv6.proof.ovh.net/files/10Gio.dat
  -> [SocketCore.cc:507] errorCode=1 Failed to connect to the host 2001:41d0:2:876a::1, cause: Address family not supported by protocol family
stephanie80 commented 7 years ago

I also have that problem. But when I download with a direct IPv6 address it works great.

ftp://speedtest6.tele2.net/100MB.zip doesn't work.

ftp://[2a00:800:1010::1]/100MB.zip works great

unixfox commented 4 years ago

I'm unable to use aria2 on an IPv6 only network due to that bug.

pywy18 commented 3 years ago

Same issue here. Running aria2 1.35.0 on OpenBSD with an ipv6 only interface does not work :(

tzarebczan commented 3 years ago

same here - any work arounds?

DroidFreak32 commented 10 months ago

I tried loading a temporary ipv6 domain in my download list file, and setting --async-dns to false to avoid it picking up the ipv4 address. Seems to help a bit