How to Enable DHT for Torrent Discovery in Aria2 Ubuntu
This article provides a concise guide on activating Distributed Hash Table (DHT) functionality within the aria2 download utility on Ubuntu. Enabling DHT allows the client to find peers without relying exclusively on trackers, improving download reliability and speed. The steps below cover the specific command-line option required and how to apply it permanently via the configuration file.
The specific option that enables DHT for torrent discovery in aria2
is --enable-dht=true. To use this temporarily for a single
download session, append the flag to your command in the terminal:
aria2c --enable-dht=true --enable-dht6=true torrent_file.torrent
For permanent activation on Ubuntu, edit the aria2 configuration file
located at ~/.aria2/aria2.conf. If the file does not exist,
you can create it. Add the following lines to the file:
enable-dht=true enable-dht6=true
dht-listen-port=6881-6999
Save the file and restart any running aria2 sessions or daemons to apply the changes. This ensures DHT networking is active for all future torrent downloads on your system.