The Deluge BitTorrent client may seem like an old VW Beetle from the outside, but once you open the hood… it is like looking at a Ferrari engine.
Although Deluge is often overlooked, in reality, this Bittorrent client is one of the most robust and flexible. In fact, it is known as the king of customization. And once you try it, you might never go back, and there are many reasons why.
If you learn how to optimize Deluge like a pro, it could be easily turned from a simple and light BitTorrent client into the most potent torrenting tool. Many of our Seedbox clients choose Deluge as their favorite client since it’s reliable, convenient, and easy to use.
The following ultimate unofficial guide to mastering Deluge will teach you how to optimize Deluge like a pro. How Deluge setup works, how to use it for speed and anonymity, and how to troubleshoot it.
Table of contents
- What is Deluge?
- Where to Download Deluge?
- Deluge: Pros and the Cons.
- How to install Deluge?
- Managing Deluge
- Optimizing User Experience.
- How to install a Deluge Plugin.
- Improve Deluge speed and anonymity.
What is Deluge?
Deluge is a fully-featured cross-platform BitTorrent client. It is supported by Linux, Windows, macOS, BSD Unix, and more. Deluge is open-source, free, and comes without annoying ads.
Deluge is one of the top clients among serious torrent users because it is lightweight, simple, and fast. But despite its simplicity, it can be highly customized to fulfill the demands of even the most hard-to-please torrent users. Deluge is the king of customizable torrenting clients. Thanks to programmable modules (or plugins), you can implement different software complements and take Deluge’s functionality to a whole new level.
Deluge does not come with unnecessary extensions and advertisements. And so, it consumes low resources and is fast. The Deluge BitTorrent platform has been designed to run as a normal standalone desktop and a client-server application. In Thin-client mode, a daemon handles all the BitTorrent activity and is able to run in the background on your machine while you connect to the user interface (WebUI) remotely from any other platform.
The Latest Deluge Release:
The latest Deluge release is 2.0.5. Available on Linux, but not on Windows and macOS. Below is a brief description of some of the latest releases.
- The 2.0.5 release: Includes bug fixes related to the WebUI.
- The 2.0.4 release: Includes major fixes on the packaging, Gtk UI, WebUI, console, core, plugins, notifications. In this version, Deluge created how-to guides about services.
- The 2.0.0 release: Includes support to Python 3, includes a Blocklist plugin, and major updates on the UI and console.
Deluge 1.3 vs 2.0
Update to Deluge 2.0? Is it worth it? What are the differences between Deluge 1.3 vs Deluge 2.0?
Deluge 2.0 is superior to Deluge 1.3 in terms of functionalities, features, and performance. Deluge 2.0 comes with performance updates that ensure the client can manage more torrents and with faster response times. Deluge v2.0 also includes new features such as multi-user support, automatic re-checks, new console UI, migration to GTK3, magnet pre-fetching, support to libtorrent 1.2, and more.
Unfortunately, as of Feb 2022, Deluge 2.0 is not supported by Windows and macOS. And there is no news of any release date for such platforms.
Although there is an unofficial Deluge 2.x installer for Windows, known to be relatively stable, it is always recommended to stick to officially released clients.
For more information on Deluge versions, check the release notes.
Where to Download Deluge?
There is no better place to download a copy of the Deluge client than from the Official Deluge website. Download Deluge the latest version (2.0.5) here:
Where to download Deluge’s source code? If you can read the code, you will know right away that the code is secured, protects the privacy of its users, and does not contain any malicious code. You may want to install Deluge from the source, use any of the following third-party Deluge download links: Release tarballs or Git repository.
Deluge: The Pros and Cons.
The Deluge bit torrent client comes with all the foundational features of a typical torrent client. As you will notice, when Deluge is missing something, a feature, a fix, etc., it will be only a matter of time before someone builds a plug-in or fixes the bug.
- Deluge is open source and free.
- It is free from advertisements.
- Its functionality can be improved with the help of plug-ins.
- Deluge is super light (always under 15MB).
- It can encrypt BitTorrent traffic through the use of MSE/PE or Message Stream.
- It is highly portable, and can be installed on a USB and run directly from it.
- Deluge comes with all the basic torrent features, such as DHT, PEX, prioritization, Magnet-Links, etc.
- It has a graphical web and command-line interface (with daemon).
- It allows automatic port mapping with UPnP, NAT-PMP, NAT for automatic router configuration.
- Not able to override queuing settings or “Force start” downloads.
- There is no built-in search engine.
- It is unable, by default, to stream media files while a download is in progress. But there is a workaround that will enable you to stream videos. Use a plug-in called Deluge Streaming.
- There is limited magnet URL functionality. There is no way to get information about torrent content in a magnet link until the download has started.
- No super-seeding setting is enabled by default. But you can apply this plug-in to get around this issue.
- It does not allow tracker exchange functionality.
- Lack of web-seeding support
- Not able to share files with an embedded tracker.
- The demon consumes large CPU resources as compared with other clients.
How to install Deluge?
When you download Deluge, you will find a wide availability of different platforms to choose from.
Deluge 2.0.5 is currently available for Linux (Ubuntu, Debian, Fedora, OpenSUSE, Arch, Gentoo, and Flatpak), BSD Unix, or Docker. As of February 2022, Deluge 2.0 packages are not yet available for Windows (XP, Vista, and 7-10) and for Apple macOS.
Deluge Windows: The latest Windows-supported release is Deluge 1.3.15.
Deluge macOS: The latest macOS-supported release is Deluge 1.3.15.
Download the correct version and follow the next instructions to setup Deluge.
How to install Deluge client on Ubuntu?
The official Ubuntu repositories include Deluge, so you might get away with using the Ubuntu install from terminal “sudo apt-get install deluge.” However, bear in mind that those repositories might be outdated, so you might need to use the PPA repository instead.
- Copy/Paste the following lines in the terminal:
sudo add-apt-repository ppa:deluge-team/ppa
sudo apt-get update
sudo apt-get install deluge
How to setup Deluge on Debian Jessie?
To install the default Deluge package version of Deluge, follow the instructions below.
Install Deluge GUI.
sudo apt-get install deluge
Deluge setup on Windows.
As mentioned earlier: “Deluge Windows: The latest Windows-supported release is Deluge 1.3.15.”
- Installing Deluge on Windows platforms is really straightforward. Once downloaded, run the executable file (.exe). If it was downloaded from a source other than deluge-torrent.org, you might want to scan it against Malware.
- In the next step, you will need to select the components for a Deluge setup.
- As you’ll notice, the Deluge BitTorrent Client is grayed out; this is because you are installing the client itself. Still, if you have another torrent client, such as uTorrent, and want to leave that client to handle different tasks, you can set it here. For instance, let uTorrent handle all .torrent files and Deluge all magnet links; this is your chance to customize which components Deluge will manage.
- In the next step, choose your install location and click Install. That’s it… The Deluge setup is finished
- You might be faced with the following Windows Security Alert from the Firewall. Allow Deluge BitTorrent to operate anywhere you want. The firewall protects your computer from untrusted (or trusted) traffic coming from an aplication such as Deluge.
How to install the headless client on an Ubuntu Server?
A headless client should work on your computer without a Graphical User Interface (GUI) or frontend. For this to work, your headless client needs to receive input and provide output through other interfaces. This client is usually connected to another frontend or interface.
As stated before, Deluge comes as a server (daemon) and as the user interface (which we all know). This means you can run Deluge server software as a headless service and control it from other machines. You can use the traditional Deluge client or the browser to control the daemon.
Installing the headless client on an Ubuntu server.
- Before installing the headless client, you’ll need to set up your server. Create a “deluge” user and group. Create the user as a system user using their home directory as the main Deluge.
sudo groupadd deluge
sudo adduser -r –home-dir /var/lib/deluge -g deluge deluge
- Make Deluge directory and set its user ownership (with recursive).
sudo mkdir /var/lib/deluge
sudo chown -R deluge:deluge /var/lib/deluge
- To install the headless/server version, issue the following command.
sudo apt update
sudo apt install deluged
- To install the Deluge console and the web interface, issue the following.
sudo apt install deluged deluge-console
sudo apt-get install deluged deluge-web
- You’ll need to configure the privilege to your deluge users, by adding it to the authentication file. Find the auth file at (.config/deluge/auth), open it and add an entry for the user.
- Now, from the deluge-console let’s enable remote connection. This will allow deluged to accept connections from remote computers (other than localhost).
sudo deluge-console "config allow_remote"
- By default, the Deluge daemon is disabled, enable it and start it.
sudo systemctl start deluged
sudo systemctl enable deluged
Update Deluge headless install.
Deluge is included in the official Ubuntu repositories. But, you still need to ensure you are using the latest Deluge version as the Ubuntu repositories may be outdated. Use the following Deluge PPA repository as it contains the latest Deluge releases for Ubuntu.
sudo add-apt-repository ppa:deluge-team/stable
sudo apt update
sudo apt install deluged deluge-web deluge-console
Logging Into Deluge.
For purposes of this Deluge guide, we will provide a walkthrough using screenshots of the Deluge WebUI. Note that Deluge Web-UI(remote access) and Deluge (GTK desktop application) designs are slightly different.
In the following example, we will be logging into a remote Deluge WebUI console.
- Browse to your Credentials page (in the client area).
- Locate the URL of your Deluge client. It will be in the following format: https://111.222.333.444/deluge/.
- Navigate to this link, and you will be prompted for credentials, like in the picture below:
- Connection Manager will open.
- Select your localhost and click on button Connect as shown in the picture below.
- When you logged in successfully, you will see the Deluge WebUI console.
The Menu Bar.
- One of the most noticeable WebUI features is the menu bar. We will explain step-by-step what is the purpose of every button.
So let’s start explaining what every button does!
- “Add” button is for adding torrents.
- “Remove” button. With this button, we can delete single or multiple torrents.
- “Pause” button we can use for pausing torrents.
- “Resume” – button role is to resume downloading/uploading your torrent/torrents.
- “Up” Increase tracker order and priority of the tracker in use.
- “Down” Decrease tracker order and priority of the tracker in use.
- “Preferences” button where we can change all of the settings.
- “Connection Manager” use this button to add new connections and start Deluge daemon.
- “Help” button. Click this button to access official Deluge support page.
- “Logout” use this button to log out of the current user session.
How to load a torrent in Deluge?
You can load torrents in two ways, via the URL magnet link or using the .torrent file.
- To add a torrent in any of the two ways, click on the “Add” button, and you will get a popup window as shown in the picture below:
- “File” – Using this button, you can browse for .torrent files that you have in your directory and add them into Deluge.
- “URL” – Using this button, you can add the URL magnet link of torrent you wish to download and add it to Deluge.
- “Files” tab – Will show all the files that the torrent file contains.
- “Options” tab – In this tab, you can set up your download destination folder and the “max Download” and “max Upload” speed.
- “Remove” button – Remove added torrents from add window.
After we select “Add file” or “Add URL”, our torrent file will start downloading as shown in the picture below:
How to create a torrent with Deluge GTK?
You can’t create torrent files using the Deluge WebUI client. Instead, you must use Deluge thin client, better known as Deluge GTK. To do that, you have to connect to the remote server hosting Deluge, via Remote Desktop via X2Go, and open Deluge GTK.
- When Deluge GTK opens go to “File” tab in the top-left corner and select “Create Torrent”.
- A “Create Torrent” window will pop-up.
How to use the Deluge GTK’s “Create Torrent” feature?
Below is a brief description of the options you’ll find in the “create torrent” panel.
- “File” – Using this button, you can browse the files in your directory that you want to create a torrent.
- “Folder” – Using this button, you can browse for folders that you have in your directory that will create a torrent.
- “Info” – Using this tab, you can add information to your torrent file like “Author” and “Comments.”
- “Trackers” – This tab is used for adding trackers to the torrent file you are creating.
- “Web seeds” – This feature is used so you can paste the location of the web address to the hosted file when creating the torrent.
- “Options” – In this tab, you can set “Private Flag” for your torrent file and set “Piece Size” that you wish your torrent to have.
- “Save” – Save your torrent when you create it.
When you select a particular torrent (as shown in the picture), you’ll notice on the bottom, all information related to that torrent.
- You can see these tabs, Status, Details, Files, Peers, and Options. All are showing real-time metrics.
- That information displyed here, is handy for keeping track of your loaded torrents.
The Status tab.
In the “Status” tab, we can find info about:
- “Downloaded” – Showing how much data is currently being downloaded.
- “Speed (Download)” – Showing how much data is currently being downloaded.
- “Uploaded” – Show how much data is uploaded.
- “Speed (Upload)” – Showing how much data is currently being uploaded.
- “Seeders” – Showing how much seeders are connected currently.
- “Peers” – Showing how much peers are connected.
- “Active Time” – Showing for how much time a particular torrent file is active.
- “Seeding Time” – Showing for how much time a particular torrent file is seeding.
- “Share Ratio” – The ratio that is calculated by dividing the amount of uploaded data by the amount of downloaded data.
- “ETA”– Estimated time that your torrent need to download the file.
- “Tracker Status” – Is showing info regarding trackers URL and its Status.
- “Pieces” – Is showing in how much pieces is your torrent file divided and how big they are.
The Details tab
In the Details tab, we can see all the full details of the data of the torrent file:
- “Name” – Name of the torrent file.
- “Hash” – Hash representation of your torrent file.
- “Path” – Path to your data.
- “Total size” – Total size of your torrent file when it is finished downloading.
- “# of files” – Number of files contained in the torrent file.
- “Comment” – Comment that author of the torrent file created.
- “Status” – Status of your torrent file.
- “Tracker” – Tracker from where you are downloading your torrent file.
The Files tab
In the “Files” tab we can find info about particular files that are included in torrent data. Here, you can see the name of the file, the size, its progress, and its priority.
The Peers tab
The “Peers” tab shows real-time information about connected peers, their country, speed, and much more.
The Options tab
In the options tab, you can configure different parameters related to your torrent files.
You can see three configuration groups of options: “Bandwidth“, “Queue” and “General“.
- “Max Download Speed” – Here you can set max download speed of your torrent.
- “Maximal Upload Speed” – Here you can set max upload speed of your torrent.
- “Max Connections” – Set max number of connections to your torrent file.
- “Max Upload Slots” – Set max number of upload slots for your torrent file.
- “Auto Managed” – Auto Manage your ratio and download location at torrent completion.
- “Stop seed at ratio” – Automatically stop seeding when you reach the certain ratio that you can manually set.
- “Remove at ratio” – Remove torrent file from the client when it reaches certain ratio that you can manually set.
- “Move Compleated” – When a data file is completely downloaded you can set directory that file will be transferred to.
- “Prioritize First/Last” – Set priority to your torrent files when they are downloading.
- “Edit Trackers” – Edit trackers from which you are downloading your data.
The Bottom menu bar explained
The Bottom menu bar shows vital information quickly and easily. It displays general “total” speed information, which can be used to set the server’s “Throttle level.” In addition, it also shows the remaining free HDD space on your server.
Pro tip: As a best practice, it is recommended not to fill your HDD to 100% to prevent your torrent client from freezing and crashing.
The Left side menu
The left side menu provides quick access to info about loaded torrents. It shows the current state of loaded torrents, such as downloading, seeding, paused, checking, errors, etc.
- “All” – Sum of total loaded torrents.
- “Downloading” – Sum of torrents that are currently downloading.
- “Seeding” – Sum of torrents that are finished downloading and are being seeded.
- “Paused” – All paused torrents.
- “Checking” – All torrents that are being checked by the torrent client.
- “Error” – All torrents that have some error active, that is preventing them from downloading/seeding.
- “Trackers” – Displays currently loaded, trackers.
Optimizing Deluge User Experience.
Organizing your Downloads.
Your Downloads folder might be starting to get messy after a few many downloads. It is perhaps time to organize it and configure Deluge to continue keeping order. To organize your downloads,
- Go to Edit > Preferences (or Ctrl+P).
- Change to an adequate and preferred location. Deluge will save all your downloads to the “Downloads” folder by default.
- You might want to change it to keep things organized. Go to Downloads > Folders, and choose the desired folder to download all content. It could be media, stuff, movies folder, or whatever name you give.
Setting up Deluge Thin Client for Remote Management.
To set up Deluge for remote accessibility, you’ll have to configure the remote server first. Deluge daemon or “Deluged” can be installed on a central server so that other computers can access and control it remotely through any Deluge client, such as the desktop app or WebUI.
Once you install the Deluge daemon “deluged” into a Server, you can then proceed to configure the local client.
- For Windows, go to Preferences > Interface > Disable Classic Mode (ensure Classic Mode “Enable” option is unchecked). This action will hide most of the demon functionality on your local computer.
- Restart your Deluge client.
- Once Deluge is back again, you will get the following message.
- Click on the “Add” button.
- Add the IP address/ hostname of your server and Username and Password.
- For more information on installing Deluge Thin Client and the server, check out “How to control Deluge remotely with a thin client.”
How to control Deluge remotely with a thin client
Remote access is one of the greatest features of the Deluge torrent client. It allows you to manage torrents remotely via a local client. To control Deluge remotely with a thin client, you have to prepare your remote Deluge machine to accept remote connections, so please follow this tutorial carefully.
Log in to your Seedbox/VPS
To setup Deluge remote access, let’s configure our remote client first.
- Log in via SSH to your Seedbox.
- Issue the following command to switch to the user account. The reason for this is because Deluge is configured for the unprivileged account.
su - user
Gather required information’s
We need to find information about Deluge. If you are using our default configuration, information’s like username, password, seedbox IP, which you can find in our Welcome email. The default Deluge port is set to 58846.
If this is not the case, follow these steps to find your details:
- Find your IP address:
- Find your username:
- Use the following command to get Deluge remote port:
sed -rn 's/(.*)"daemon_port": (.*),/\2/p' ~/.config/deluge/core.conf
- Find your password:
sed -rn "s/$(whoami):(.*):(.*)/\1/p" ~/.config/deluge/auth
Configure Deluge remote option
Now you need to do some minor tweaks on your VPS/Seedbox. Login remotely via SSH. Please follow this guide on How to Connect to Your Seedbox using SSH if you are unsure how to log in.
- We need to stop the existing Deluge service first:
systemctl stop deluged
- Or if you are using our newest template:
systemctl stop deluged@user
- If you are logged via SSH as a root account, you need to switch to a user account first, or to a user for which Deluge is configured.
su - user
- The next step is to set a password:
echo "user:MyPassword:10" >> ~/.config/deluge/auth
- Now, we need to allow remote connections.
deluge-console "config -s allow_remote True"
deluge-console "config allow_remote"
- Start Deluge:
Setting your Local Deluge client
- Go to Edit/Preferences and navigate to Interface tab as shown on the picture.
- Disable Classic mode.
Adding Remote connection
Now, we need to add an actual remote connection.
- After you’ve disabled Classic mode, you’ll need to restart your Deluge client.
- The window below should pop-up when you launch it next time. If not, open Deluge and navigate to Edit/Connection Manager or press Ctrl + M.
- Click on Add button, and add parameters that you’ve obtained in previous steps.
- You need to fill in information as shown in the picture below:
- Press Add, then Connect.
- After this step, you should be able to initiate a remote connection with Deluge.
How to Change Deluge WebUI Password
- Using your WebUI access URL (https://seedboxIP/deluge) given in the client area, “My Services” page, paste it into your browser, and a login window should display.
- Provide the default password and proceed by clicking Login.
- On the WebUI console, choose “Preferences” > “Interface”.
- In this window, you can update your WebUI password. An old password is a password you used to log in previously, a new password is the one you intend to create right now.
- Once done, click change, and a confirmation prompt will appear confirming the change.
- Click on Ok > Apply > OK
Tune and Tweak libtorrent settings using ltConfig (Advanced users)
NOTE: Older versions of libtorrent may have different setting names. For information about each libtorrent setting, see the libtorrent manual.
If you are using Windows, start by downloading a .msi installer to update libtorrent. You can get the .msi from a code archive (as follows)…
WARNING: Modify settings at your own risk!
To know the correct file to download, first, you’ll need to find out about your Python version.
- Go to the command line in Windows “cmd” on and type “Python — version.”
- Execute the Windows installer (.msi) and then copy the “libtorrent.pyd” file from the install location to your Deluge folder.
- Go ahead and restart Deluge.
- You should now see the libtorrent version.
How to install a Deluge plugin.
Plugins make Deluge one of the most fantastic torrent clients out there.
- To install a plugin, go to the official Deluge plugin website, and browse through their library of 3rd party browsers or application plugins.
- In this example, you will learn how to allow Streaming video and audio directly from the Deluge client while downloading (something impossible with the original client) with the help of a 3rd party plugin.
- Find the “Streaming” plugin in the official Deluge library.
- Then download the “.egg file” inside the plugin site. Make sure you download the correct version for your Operating System.
- Once downloaded, go to your Deluge client, and open Preferences > Plugins > Install Plugin.
- Find the correct plugin version, and click on Open, if it doesn’t work, try with an older or newer version of the plugin.
- Finally, to enable the plugin just check on the “Streaming” option.
- It will take a few seconds, and then it will be shown in the left-hand side menu (as shown below).
Scheduler Plugin for Deluge
One of the most useful built-in features of Deluge is its Scheduler plugin. A unique feature of this plugin is the ability to place limits on bandwidth usage throughout the day.
Here’s a short walk-through on how to activate the Scheduler on WebUI.
- Login to WebUI using the password given to you in the client area “My Services” page.
- Go to Preferences > Plugins
- Check on Scheduler, hit Apply then OK.
- Close this window first and refresh..
- The next time you go to Preferences, Scheduler should be available at the bottom as a Category.
How to use RSS on Deluge using YaRSS2 plugin.
In this section, we will show you how to use RSS on Deluge in combination with the YaRSS2 plugin.
Install YaRSS2 plugin
- Connect to your Deluge WebUI.
- Then go to “Preferences” > “Plugins”.
- Select “YaRSS2” and click the install button.
- When you click “Install”, a new window will open and it will ask you to add “Plugin Egg”. “Plugin Egg” is version “YaRSS2” plugin based on “Python” version that you are using. So to find out your “Python” version you need to connect to your “ssh/root” and type in this command “python –version”.
- When you get your “Python” version then you need to go to this website: https://bitbucket.org/bendikro/deluge-yarss-plugin/downloads/ and download “Plugin Egg” for your specific “Python” version.
- After you download your “Plugin Egg” you need to go back to your WebUI and add it to the install path.
Using the YaRSS2 plugin
- After you install the plugin, close the WebUI and connect to the remote desktop.
- Then go to “Applications > Internet > Deluge”. This will open your Deluge thin client, you need to do this, because “YaRSS2” is not compatible with WebUI
- When you open Deluge you need to add the Feed that you will use.
- Go to “Preferences > YaRSS2 > RRS Feed > Add Feed“
- Enter an “RSS Feed name” and the “RSS Feed URL” for your feed then click Save button.
- Next, you need to click on the “Subscription Tab” then “Add Subscription”
- A new window will appear where you need to enter a name, select the feed you just added, and enter any filters you want. When you finish all that click on Save.
- Now under the “Subscriptions list”, right-click the subscription you just made and click “Run this subscription” and click OK.
Now you will notice that your torrents will begin downloading. And also, when you finish configuring your RSS feed, you can use your WebUI to check the status of torrents, or you can continue using your GTK over the remote desktop.
Improve Deluge speed and anonymity.
Most users who applied some of the following suggested speed, and privacy settings are pretty satisfied. However, remember that the following suggested Deluge settings should not be treated as a “fit-to-all” approach. Scenarios change for every particular user.
For instance, you might have the fastest bandwidth and best computer, but your ISP might be doing a great job blocking torrent traffic. Or, you are using Deluge VPN, but the VPN service provider is keeping your logs.
Avoid bandwidth throttling.
Internet Service Providers (ISPs) are constantly hunting down P2P and BitTorrent traffic, as this has been one of the “top-consumers” in bandwidth utilization. Although now streaming is probably the number one type of traffic that consumes the most bandwidth, ISPs would still block or throttle torrent due to its reputation. If and when ISPs detect torrent traffic, usually with a port number, they will throttle it (limit it) or completely block it.
Before you can bypass these restrictions imposed by your local ISP, you’ll have to know about Deluge port numbers.
What are the default Deluge ports?
- The Deluge default port is: 58846
- The default Deluge port for WebUI is: 8112
By default, Deluge communicates on port 58846. But, remember that this is signaling (communication) and not torrenting traffic. When it comes to data (torrenting traffic), Deluge uses random ports, usual ports between 50,000 and 65,000.
How to change the default Deluge ports?
To allow inbound and outbound torrent traffic to flow freely, you might have to adjust the default Deluge port settings. You’ll have to change the port because lower ports tend to be blocked by ISPs and conflict with other application ports.
Go to the Network submenu, and uncheck “Use Random Ports” for incoming and outcoming ports. Assigning a manual port is not always the best option, but it is useful if you need to forward the port. Change the port number to any number between 50,000 and 65,000, and especially avoid lower ports within the 6881-6999 range, as they tend to be blocked by ISPs.
Disabling vs. enabling DHT.
- Disable DHT for private trackers.
- Enable DHT for public trackers.
Some private trackers might require you to disable DHT (Distributed Hash Table) or tracker-less method. DHT could leak information about other users within the torrent swarm. These private trackers only provide torrent files with a private tag set, which won’t work when DHT is enabled.
On the other hand, leave DHT on if you are using Deluge bit torrent client on a public tracker. Although DHT requires more network overhead, it does provide benefits when it comes to public trackers. DHT improves the torrent’s swarm health; it helps find more peers, hence speed.
- You’ll find DHT under Network Extras. Disable it if you are using a private tracker.
- If you are using public trackers with your client, it is recommended to leave all the Network Extras default settings on. DHT and Peer Exchange (PE) will help you find more peers and seeds to download your torrent faster.
Enabling encryption torrent.
If a peer on the torrent swarm has enabled torrent encryption and you haven’t, the connection to this peer will likely fail.
To improve torrent connectivity, ensure that your client can connect to other peers with the “protocol encryption enabled.”
- Ensure that the Inbound/Outbound Encryption at the end of the Network tab is set to Enabled.
- If you want maximum security, you can Force encryption. You may have to play with this setting a little bit. For instance, enable it for some time, monitor it, disable it after a while, and monitor it again. Force encryption is too rigid and will lower the chances of a successful connection. This option will refuse to connect to other peers that do not have encryption enabled on their end.
Note: Bear in mind that the encryption torrent option only encrypts your inbound and outbound torrent traffic. Your traffic can still be intercepted and tagged as torrent traffic, but it will not be readable. If you want to increase your privacy, you’ll need to encrypt the entire layer 3 traffic (at the IP level), so it is recommended to set Deluge with VPN. To hide traffic at layer 7 (application layer), use a torrent Proxy. And finally, to hide, encrypt, and speed up your torrents, use a Seedbox.
Deluge Port Forwarding.
A port forward is a type of networking setting (or rule) that allows NAT (Network Address Translation) at the destination. With port forwarding, a NAT gateway, such as an Internet router or firewall, successfully forwards the received packets to the right destination. A “port forward” rule requires a source and destination with protocol and port information.
Refer to the diagram below. Let’s say your computer is the one with a green box (dest:10.0.2.2:80). The remote clients connect to your Internet gateway (router) with external public IP 10.10.2.1, through the Internet. The gateway performs NAT, to translate the external IP into the internal IP and port. At the application level, the green computer is using port 80, while the blue computer uses 443. If the router doesn’t know about the ports and destination, it will not forward the traffic.
Why would you need port forwarding in Deluge?
If you feel your communication with other torrent peers is limited, slow, or is simply never possible, your Deluge ports might be being blocked by a networking device. When the gateway, router, firewall, or proxy receives an incoming connection from an external remote client (a torrent peer), the device will not know where to forward it within your Local Area Network (LAN), so it discards it.
So, since you trust Deluge and the torrent peers, you’ll need to set up Deluge port forwarding so that such a device knows where to forward the traffic exactly. The device intercepting inbound traffic and doing the NAT will now know where to forward that remote Deluge client traffic— to your computer.
How to configure Deluge Port Forwarding?
- Before you forward a port (network, layer 3), check the exceptions on your antivirus and firewall (at application, layer 7) to ensure Deluge connectivity is allowed. For example, in Windows, go to the Windows Firewall, then Inbound and Outbound rules, and make sure that Deluge (the application layer) is set to “Allowed.” If there is no such rule, you’ll need to create a new one.
- To configure port forwarding in Deluge, you’ll need to log into your router and find the “port forwarding” settings.
- You must specify the public port on the router or gateway for redirecting traffic to an internal LAN IP address and private LAN port. So, as mentioned earlier, you’ll need source/destionation IP, and port, protocol information.
- Below is a screenshot of my Internet gateway’s port forwarding options.
Port Forwarding: Provide the following information.
- Local or internal IP: Your computer’s IP. Note: Make sure your IP is assigned manually. If your network uses DHCP to allocate IPs, as soon as more users conect to the network or your routers restarts, your IP will likely change. You can usually assign a static IP from the same router, which is most of the time a DHCP server (and NAT).
- Local start and end port: This is where you give the port or range of ports. For instance 50000 – 65000 or a fixed port such as 52500. Remember to avoid ports within the 6881-6999 range, as they tend to be blocked by ISPs.
- External IP: Leave default values.
- External start and end port: Leave default values.
- Protocol: BitTorrent uses TCP.
- Description. Enter whatever you like to describe your rule.
This new port forwarding rule will map a port or range of ports for the incoming connections, to your LAN’s IP. Make sure that you are using a static IP.
Should you use UPnP?
An easy way to enable port forwarding in Deluge is making sure that UPnP (Universal Plug-n-Play) is enabled under “Network extras”. UPnP in BitTorrent helps peers find each other, by automatically modifying your router to allow port access.
To make this work, the router will also need to be UPnP-enabled. Most new routers have UPnP on by default. If yours is not, find your router’s manual and follow the instructions on how to enable it.
Word of caution: Some users prefer to disable UPnP, as it has been identified with a vulnerability (CVE-2020-12695). It is a vulnerability exploited to gain control of your computer, turn it into a bot and perform a DDoS attack.
Improving Deluge download speed.
Many BitTorrent users would limit “Upload Speed” and set their “Download speed” to unlimited. After all, it is one pipe, so upload traffic would affect download traffic. So, it seems logical to reserve 100% of the capacity for downloading your content.
But BitTorrent protocol does not work like that. Your “Uploads” speeds will affect the “Downloads.” BitTorrent uses “choke,” a protocol method that limits download speeds; the more upload is limited. It uses this method to prevent congestion and unfair sharing. Users who upload more have more “connection priorities.”
So how can you improve the Deluge download speed?
Although Deluge comes with an option to set the bandwidth for upload and the bandwidth for download separately, one will affect the other. So, you’ll need to find the sweet spot between uploads and downloads.
Step 1. Find out your actual Internet speed
- To test your Internet connection, use a speed test services such as Ookkla’s Speedtest.
- In the Speed Test website, change the speed rate measurement from Mbps to Kbps (KiBs are close to Kbps, which is Deluge’s prefered metric)
- To do this, go to Settings > Speed > and select “Kilobytes” (Kbps).
- Click on Go to test your speed and record your download and upload speed.
- It is recommended to test at different times, with various devices, and when there is no traffic in your network (when only you are connected) to get a precise output.
Asymmetric bandwidth: As you might notice from the test, my download is entirely different from my upload. Most home Internet speeds use asymmetric bandwidth, where upload differs from the download speed. This type of bandwidth is common in homes when there is usually more data that comes than data that leaves the network. So, if you have asymmetric bandwidth, your upload speed is already limited; limiting even more at the application layer (Deluge) won’t help improve your download speeds.
Step 2. Configure Global Bandwidth Usage
- Go back to Deluge and into Preferences > Bandwidth.
- Maximum Connections and “Upload Slots” leave with its default values.
- Max Download Speed: Leve the default settings (-1.0) means unlimited.
- Maximum Upload Speed: Same as above, the default settings are set for unlimited (-1.0). Reduce this value between a range of 80% to 90%. Do not go below, as it will also affect your download speed.
- Leave the rest of the parameters with its default values.
- As you might notice, download and upload speeds are presented in KiB/s (not Kbps or Mbps). Kibibits per second (KiBs) equals to 1.024 Kbps.
Step 3: Maximizing your queue setting.
Finding the right balance between queues can also be key to speed. Too much download/upload activity may result in overall slow speeds, but at the same time, too little will take you nowhere. So how can you find the right queuing settings?
Keep in mind, that all active downloading torrents are also seeding at the same time. So, Deluge recommends setting your “Total active seeding” the same as “Total active” and the “Total active downloading” proportionally lower.
However, this decision can also depend on the previously measured bandwidth values. The active number of torrents can also be proportional to your speed.
For example, if your upload speed is between 150 to 250 kbps, set “Total active” to 10, downloading to 8, and seeding to 10. If your upload speed is more than 250 Kbps set your values to 15, 10, and 15 (and so on…).
To maximize your number of downloads without affecting speed, click on the option “Do not count slow torrents”, which will not count slow torrents towards your total active torrents.
VPN, Proxy, or Seedbox in Deluge.
Regardless of what torrent client you use, using BitTorrent will always expose your information in some way or the other. All peers within the same swarm can easily see your data, including IP, country, OS, and even Deluge version. On top of that, even though you might be downloading legal Ubuntu files, your ISP will likely monitor and block all torrent activity.
- To get an idea of your peers and their information, open Deluge > Go to your download.
- On the bottom bar, go to Peers, and you will see the information of other peers seeding the file. So, this means anybody can do the same, note down your IP, the current content you are downloading and use a geolocation service to find where you are located and which ISP you are connected to.
How to stay anonymous with Deluge?
- A Proxy: Proxies do not encrypt Layer 3 traffic; they only mask IP information, and in some cases, as SOCKS5 proxies do, protect your traffic with passwords. Sometimes using a proxy is much better than a VPN; this is because proxies do not compromise speed. Learn how to set up proxy in Deluge.
- A VPN: Deluge VPNs provide much stronger encryption but compromise speed. A VPN is the best way to protect yourself in a torrent swarm (by masking your IP) and from middle-man attacks or bandwidth throttling (by encrypting all your traffic). For Deluge VPN, OpenVPN is a great tool to begin with. With OpenVPN, you can create a client/server environment or just use any of their servers worldwide.
- A Seedbox: A high-speed performance Virtual Private Server “VPS” in the cloud dedicated to seeding torrents. A seedbox gives you the ultimate level of torrent privacy and speed. With a seedbox, you are virtually using another remote computer in the cloud for all torrent activity. This is the best way to protect your identity online and stay secure. A Seedbox from Rapidseedbox is one of the easiest and best VPS, to begin with.
Need more information on how to stay anonymous? The Ultimate Crib Sheet for Staying Anonymous Online might have the answers that you are looking for.
Just like any other application, Deluge might give you some headaches down the road, especially if you are optimizing and tweaking it out of its default settings. Fortunately, the Deluge community is pretty helpful, so you’ll probably find some easy solutions. Check Deluge Forums, as you might find solutions to your strange problem.
The following are three of the most common problems found to be affecting the highest number of users.
- Deluge not uploading or not seeding
- Test active port fails.
- Deluge torrent error
Check if you have the same symptoms and try following any of the solutions.
No Incoming Connections!
If you Deluge is not seeding (not uploading) but it is able to download. In addition, you are seeing the “No incoming connections!” at the bottom of the Deluge client; you might be having a port mapping issue.
The “no incoming connections” is probably due to a closed port (at least Deluge sees it that way).
- First, try restarting any firewall or router that might be blocking the connection.
- If that didn’t work, by all means, make sure that your firewall has the Deluge exception (deluge.exe, deluge-console.exe, deluged.exe, deluge-gtk.exe, and deluged-web.exe) and that the firewall/router is accepting all incoming connections from the Internet to the program.
- Go back to the port forwarding section.
The “Test Active Port” fails.
If you defined ports between 50,000 and 65,000, you are on the right track. To pass the “Test Active Port,” you’ll first need to make sure your port forwarding is working. You can use an open port check tool like CanYouSeeMe and test whether the tool can see your Deluge through that port. If that fails, then it means your ports are not forwarding.
Try the following solutions:
- Enable UPnP in Deluge and on the router. (Disable after testing).
- If UPnP works, disable it and configure manual port forwarding. Look into your device’s instructions manual and follow the steps to forward a port manually.
- Make sure that your antivirus / antimalware is not blocking your connection.
Deluge torrent error.
The client stops downloading and shows an error message.
Deluge torrent error: Downloads randomly stop and display an error message in the download bar.
To solve this problem, you can try the following solutions:
- Check whether the status of the torrent is Ok.
- Some file scanning application like Antivirus might be stopping your download.
- Upgrade or downgrade your program.
Torrents not working with Deluge VPN.
While using a VPN with Deluge, your client is not able to find peers for your torrents, or in the best case, it downloads very slowly.
Usually, VPNs will not discriminate against different types of traffic in order to maintain the security and privacy of users. But, if you can’t use a VPN with Deluge, then it is probably because your VPN provider does not support torrents or P2P. Contact and consult them.
If they do support P2P traffic, but you are still having problems, then check the following:
Problems with torrents and VPN are usually related to the configuration on the local machine or the VPN server and not related to ISPs.
- Check your internal software firewall / anti-malware and make sure they are not blocking the connection of the program. If they are, make an exception.
- Try disabling UPnP and NAT-PMP, as they will automatically assign ports that might not be specified on the firewall of the VPN. To disable these parameters, go to Edit > Preferences > Network > Network Extras.
- Use the open port check tool such as CanYouSeeMe to make sure that your ports are open. If the tools fail to open communication with the Deluge ports, it means that your ports are being blocked. To solve this, you will have to manually forward your ports.