Enable Local Peer Discovery for Torrents in aria2 on Ubuntu
This guide explains how to configure aria2 on Ubuntu to utilize local peer discovery for torrent downloads. You will learn the specific command-line flag and configuration setting required to activate this feature, allowing faster transfers within your local network without relying on external trackers.
The option that enables the use of local peer discovery for torrents
in aria2 is --enable-local-peer-discovery. When set to
true, aria2 uses UDP multicast to find peers on the same local
network.
To use this feature via the command line, add the flag to your download command:
aria2c --enable-local-peer-discovery=true torrent_file.torrent
For permanent configuration, edit your aria2.conf file.
Add or modify the following line:
enable-local-peer-discovery=true
This setting is particularly useful for LAN parties or internal networks where internet bandwidth is limited but local speed is high. Note that this feature works only with BitTorrent protocols and requires network support for UDP multicast.