How to enable peer exchange (PEX) in aria2?

Published on Aug. 22, 2023, 12:19 p.m.

To enable Peer Exchange (PEX) in aria2, you can use the –enable-peer-exchange=true flag. Here’s an example command:

aria2c --enable-peer-exchange=true http://example.com/file.zip

In this example, we’re downloading a file from http://example.com/file.zip using aria2c and passing the –enable-peer-exchange=true flag to enable PEX.

Note that PEX is enabled by default in aria2, so you may not need to use this flag. However, if you previously disabled PEX using the –enable-peer-exchange=false flag, you can use the –enable-peer-exchange=true flag to re-enable it.

To enable peer exchange (PEX) in aria2

To enable peer exchange (PEX) in aria2, you can set the enable-peer-exchange option to true in your aria2.conf configuration file. Here is an example:

# enable PEX
enable-peer-exchange=true

This will allow aria2 to exchange peer information with other clients, potentially improving download speeds and resiliency. Make sure to also enable DHT (enable-dht=true) if you want to take full advantage of BitTorrent swarm features in aria2.

Once you’ve updated the configuration file, you can start aria2 with the conf option to use the new configuration file:

aria2c --conf=/path/to/aria2.conf

This will start aria2 with the new configuration settings, including PEX.

Tags: