Skip to content

How to Set Up Transmission on a Linux Server – Lightweight Torrent Client with Web UI and Watch Folder

Set up Transmission on your Linux server as a One-Click App with HTTPS and a password, or with Docker Compose, an open peer port and a watch folder.

30 November 202613 min read2 Views0 helpful

Introduction

Transmission is a lightweight, free, open-source BitTorrent client. On a server, it runs as a background service without a screen and is controlled through a web interface in your browser: add torrents, pause them, limit speeds, and track progress. It also has a watch folder, where Transmission automatically starts new .torrent files. This lets your VPS download and seed around the clock while your own computer is off. In this guide, we’ll show you two ways to set it up: the easy way as a One-Click App, which gets Transmission running with HTTPS and password protection in just a few clicks, and a manual installation with Docker Compose. After that, you’ll learn how to manage torrents, transfer completed downloads to your computer, and understand the limitations.

Warning: Share legal content only

With BitTorrent, you don’t just download files—you also distribute them to others. Only share content that you have the rights to or that may be freely redistributed, such as Linux distributions, open-source releases, works under a Creative Commons license, or your own files. Under our Terms and Conditions, you are responsible for all content on your server and must not use it for illegal purposes. Sharing copyrighted content without the rights holder’s permission is not allowed. Rights holders send complaints to us, and violations may result in your service being suspended in whole or in part.

When a torrent client on a VPS makes sense

A torrent client on a server, often called a seedbox, is useful if:

  • you want to download and seed large files around the clock without having to leave your PC running for days.
  • you want to reduce the load on your home internet connection, because uploads and downloads use the data center’s connection.
  • you want to distribute your own large files, such as mod packs, project releases, or images that you have the rights to share.
  • you want torrents to start automatically: just place a .torrent file in the watch folder, and Transmission takes care of the rest.
  • you’re looking for a lightweight client that runs well even on a small VPS.

A VPS is less suitable if you want to store very large amounts of data permanently. Storage space can run out quickly. Plan your storage based on the size of your downloads and regularly clean up completed files. For an overview of what a VPS can do as a seedbox, see Seedbox VPS.

Transmission or qBittorrent?

The app catalog includes two torrent clients. Both download and seed reliably, but they focus on different things:

TransmissionqBittorrent
InterfaceSimple, with few settingsMany settings; includes VueTorrent as a One-Click App
One-Click App credentialsGenerated during installation and available in the App environmentTemporary password in the container logs
Watch folderSet up and enabled in the One-Click AppNot preconfigured
RSS downloadsNot built inBuilt in

If you just want to download torrents through a browser or watch folder, Transmission is the simpler choice. If you need detailed rules, such as categories, RSS downloads, or many settings for each torrent, see the guide How to Set Up qBittorrent on a Linux Server.

The easy way: Transmission as a One-Click App

The quickest way to get Transmission running is through your VPS’s One-Click Apps. With a domain, the app is accessible directly over HTTPS and is protected from the start with a generated username and password. You don’t need a reverse proxy or certificate.

Requirements

  • A Linux VPS (Debian or Ubuntu) with One-Click Apps set up. For instructions, see Setting Up One-Click Apps.
  • Enough free storage for the files you want to download.
  • To retrieve completed files: access via SSH or SFTP.

Install

  1. Open your VPS in the ZapX dashboard and switch to the One-Click Apps tab.
  2. Find Transmission in the app catalog and click Install app.
  3. Use a custom subdomain or zap.cloud is already selected, with a random name. Leave the option enabled or enter your own name: you’ll use the domain to access the interface over HTTPS.
  4. You don’t need to fill in anything under App configuration. It only shows two Automatically generated values: SERVICE_USER_ADMIN (username) and SERVICE_PASSWORD_ADMIN (password). Both are generated securely during installation.
  5. Click Queue installation. After about a minute, Transmission will show as online on the app card.

First login

You can find your credentials in the app settings (the gear icon on the app card), under the App environment tab and Automatically generated values:

  • SERVICE_USER_ADMIN is the username.
  • SERVICE_PASSWORD_ADMIN is the password.

Use the eye icon to show a value and the icon next to it to copy it.

Then open the app’s Access link. Transmission uses simple HTTP authentication: your browser displays a small login window instead of a separate login page. Enter your username and password there. You’ll then be taken to the torrent overview, and the address will change to /transmission/web/.

Info: No one can access it without credentials

The web interface and the endpoint at /transmission/rpc respond with “401 Unauthorized” without valid credentials. Don’t change the password in the settings.json file inside the container: according to the image documentation, the image expects credentials exclusively through environment variables. Otherwise, Transmission can no longer be stopped cleanly.

Peer port, download folder, and watch folder

The One-Click App does not expose the torrent port 51413 externally. Downloads still work because Transmission initiates connections to other peers itself: in a test, a Debian installation image downloaded from more than 40 peers in a few seconds. However, other peers can’t connect to your server on their own. That’s why the settings under Network show “IPv4 port is Closed,” and completed torrents upload very little. If seeding is important to you, use the manual installation below, which opens the port.

The app creates three Docker volumes for /downloads, /watch, and /config. Transmission uses them as follows:

Folder in containerContents
/downloads/incompleteTorrents that are still downloading
/downloads/completeCompleted downloads
/watchWatch folder: Transmission automatically starts any .torrent files placed here
/configSettings and your torrent list

Updates and backups

Update Transmission in the app settings (gear icon) under App update. Click Check for updates, then install a new version with Apply update. If the app is up to date, there isn’t a newer version in the app catalog yet.

Settings, the torrent list, downloads, and the watch folder are stored in Docker volumes and are preserved during updates. Also copy important completed files to your computer or another storage location—a volume is not a backup.

Manual installation

The rest of this guide covers the manual installation of Transmission with Docker Compose on your VPS. For example, use this method if you don’t use One-Click Apps on your server or want to open the torrent port for incoming connections. We’ll use the linuxserver.io image, which is also used by the One-Click App.

Requirements

  • A Linux VPS running Debian or Ubuntu, with SSH access. See First Access via SSH.
  • Docker and Docker Compose. See Installing Docker. Check the installation with docker --version and docker compose version.
  • For HTTPS: a domain or subdomain whose A record points to your VPS’s IP address (e.g., torrent.example.com).

Transmission itself uses very few resources, and CPU and memory are rarely bottlenecks. Storage and network are what matter:

ResourceWhat to consider
Storage spaceThe combined size of all torrents stored on the server at the same time, plus some extra space
NetworkSeeding generates ongoing uploads, which count toward your traffic quota
CPU and RAMUsage increases with the number of active torrents and connections

Prepare the firewall

The web interface listens on port 9091. You don’t need to open this port if you use a reverse proxy as described below. For incoming connections from other peers, however, you need peer port 51413 for both TCP and UDP. With ufw, allow only what you need:

Code
ufw allow OpenSSH
ufw allow 80/tcp
ufw allow 443/tcp
ufw allow 51413/tcp
ufw allow 51413/udp
ufw enable
Warning: Docker bypasses ufw

Ports published by Docker with ports: are accessible externally even if ufw blocks them. Docker adds its own rules ahead of ufw rules. Therefore, bind the web interface to 127.0.0.1 as shown in the Compose file below. For more information about firewalls, see Managing the Firewall on Linux.

Install with Docker Compose

Create a directory for Transmission and switch to it:

Code
mkdir -p /opt/transmission
cd /opt/transmission

Store the credentials in a .env file that only root can read. The following command generates a random password:

Code
umask 077
printf 'TRANSMISSION_USER=admin\nTRANSMISSION_PASS=%s\n' "$(openssl rand -base64 24 | tr -d '/+=')" > .env
cat .env

Make a note of the displayed password. Then create the Compose file with nano docker-compose.yml. It’s based on the example in the official linuxserver.io documentation:

Code
services:
  transmission:
    image: lscr.io/linuxserver/transmission:4.1.4
    container_name: transmission
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Berlin
      - USER=${TRANSMISSION_USER}
      - PASS=${TRANSMISSION_PASS}
      - PEERPORT=51413
    volumes:
      - ./config:/config
      - ./downloads:/downloads
      - ./watch:/watch
    ports:
      - 127.0.0.1:9091:9091
      - 51413:51413
      - 51413:51413/udp
    restart: unless-stopped

Here’s what the entries mean:

  • image: Transmission 4.1.4 at a fixed version, as in the One-Click App. Using a fixed version lets you decide when to update.
  • PUID and PGID: Transmission creates files under this user and group ID. With 1000, downloads belong to the system’s first regular user.
  • TZ: The time zone for timestamps in the interface and logs.
  • USER and PASS: Enable login to the web interface. The values come from the .env file in the same directory. Without these two lines, the interface is unprotected.
  • PEERPORT: The port for torrent connections. It must match the two 51413 entries under ports:.
  • ./config:/config: Settings and your torrent list are stored in the config directory next to the Compose file.
  • ./downloads:/downloads: Downloads go to /opt/transmission/downloads, with in-progress downloads in the incomplete subfolder and completed ones in complete.
  • ./watch:/watch: The watch folder. If you place a .torrent file here, Transmission automatically starts the torrent.
  • 127.0.0.1:9091:9091: The web interface is only accessible from the server itself. External access goes through the reverse proxy.

Start the container:

Code
docker compose up -d

Check whether it’s running with docker compose ps, and view the logs with docker compose logs -f.

First access

Because the web interface only listens on 127.0.0.1, you’ll access it through an SSH tunnel the first time. Run this command on your own computer:

Code
ssh -L 9091:localhost:9091 root@SERVER_IP

Replace SERVER_IP with your VPS’s IP address, then open http://localhost:9091 in your browser. The browser will ask for your username and password: use the values from the .env file. To check whether the peer port is accessible externally, open Edit preferences from the menu (three lines in the top-right corner), then select the Network tab. If the port is open, it will show “IPv4 port is Open.”

Access over HTTPS through a reverse proxy

To access Transmission without a tunnel, put a reverse proxy with a valid certificate in front of it. For the basics, see Setting Up a Reverse Proxy with nginx and Creating an SSL Certificate (Let's Encrypt). An nginx server block looks like this:

Code
server {
    listen 80;
    server_name torrent.example.com;

    client_max_body_size 50M;

    location / {
        proxy_pass http://127.0.0.1:9091;
        proxy_http_version 1.1;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}

client_max_body_size allows you to upload larger .torrent files through the interface. Then obtain the certificate with certbot --nginx -d torrent.example.com. Certbot adds HTTPS and HTTP redirection to the block. Transmission authentication continues to work unchanged through the proxy.

Tip: Restrict access to specific addresses

The image supports two optional variables: WHITELIST allows access only from specific IP addresses, and HOST_WHITELIST allows access only through specific domain names. If they’re left empty, both checks are disabled. If you set HOST_WHITELIST, enter your domain there, e.g., torrent.example.com; otherwise, Transmission will reject requests through the proxy.

For more tips on securing your server, see Linux Security Tips.

Back up your data

The most important folder to back up is config, which contains your settings and torrent list. Stop Transmission first so the files are in a consistent state:

Code
cd /opt/transmission
docker compose stop
tar -czf transmission-config-$(date +%F).tar.gz config
docker compose start

Also back up downloads in the downloads folder if you aren’t already copying them to your computer. If you want to change settings directly in config/settings.json that aren’t available in the interface, stop the container first as well; otherwise, Transmission will overwrite your changes when it shuts down.

Update Transmission

Back up the config folder first and read the release notes for the new version. Then enter the new version number in docker-compose.yml and restart Transmission:

Code
cd /opt/transmission
docker compose pull
docker compose up -d

Remove old images with docker image prune. Your torrents and settings will be preserved because they’re stored in the config folder.

Manage torrents and transfer downloads to your computer

After setup, add torrents through the interface or the watch folder. An official torrent for a Linux distribution is a good way to try it out, such as the Debian installation image from debian.org.

Add torrents

Click Open in the top-left corner. In the dialog that appears, select a .torrent file from your computer, or paste a magnet link or the address of a .torrent file. You can see progress directly in the list. Inspector shows details about peers, files, and trackers. Use Start and Stop to resume or pause selected torrents.

Use the watch folder

Instead of adding each torrent individually through the interface, you can simply place .torrent files in the watch folder, for example, using SFTP. Transmission continuously checks the folder, automatically starts new torrents, and then renames each file to <name>.torrent.added. This makes it easy to see which files have already been picked up.

  • Manual installation: The watch folder is /opt/transmission/watch.
  • One-Click App: The watch folder is in the Docker volume whose name ends in transmission-watch (find the path as described in the next section).

Transfer downloads to your computer

The easiest way to retrieve completed files is via SFTP, using a program such as FileZilla or WinSCP. For instructions on connecting, see Connect via SFTP.

  • Manual installation: Completed files are in /opt/transmission/downloads/complete.
  • One-Click App: Files are in the complete subfolder of the Docker volume whose name ends in transmission-downloads. Use these two commands to find the exact path on the server:
Code
docker volume ls | grep transmission-downloads
docker volume inspect -f '{{ .Mountpoint }}' VOLUME_NAME

Replace VOLUME_NAME with the name from the first command. Connect via SFTP as the root user and open the path shown, which starts with /var/lib/docker/volumes/.

Info: Free up space

After downloading a file, remove the torrent by right-clicking it in the list. You can choose whether to remove only the entry or delete the downloaded data as well. This keeps enough storage available for new downloads.

Limit speed and seeding

Open Edit preferences from the menu in the top-right corner. In the Speed tab, set the maximum download and upload speeds for Transmission. Under Alternative Speed Limits, you can set a second, lower limit and switch to it using the turtle icon in the toolbar, or schedule it to activate automatically at set times. In the Torrents tab, use Stop seeding at ratio to set the upload-to-download ratio at which a completed torrent stops seeding. This helps you keep traffic and server load under control.

To connect remote-control apps that support the Transmission interface, use your domain, port 443 (HTTPS), the path /transmission/rpc, and the same credentials as in the web interface.

Limitations

  • Storage space: Plan for the full size of each torrent for as long as its files remain on the server. If you run out of storage, increase it in the Manage plan tab of your VPS.
  • Traffic: Downloads and uploads count toward your VPS’s traffic quota. For what happens if you exceed it, see Traffic Quota, Throttling, and Traffic Packages.
  • Sustained load: Under our Terms and Conditions, a service must not use so much network capacity on a sustained basis that it affects other customers or the platform. If you have many active torrents, set reasonable speed and connection limits.
  • No incoming connections with the One-Click App: The peer port isn’t accessible externally; see above.
  • No media playback: Transmission only downloads files. To stream your own videos and music, use a media server such as Jellyfin.

Conclusion

You’ve set up Transmission on your VPS, found your credentials, and learned where downloads and the watch folder are located and how to transfer completed files to your computer. Your server can now download and seed around the clock without putting a load on your PC or home internet connection. Only use it for content you’re allowed to share.

Prefer not to deal with Docker manually? Use the easy One-Click App option described above under “The easy way: Transmission as a One-Click App.”

Free tools

Related tools for servers and developers

View all

FAQ

Frequently asked questions

The One-Click App is the quickest option: Transmission runs under your domain over HTTPS after about a minute, a username and password are generated during installation, and you can install updates in the dashboard. However, peer port 51413 isn’t accessible externally, so other peers can’t connect to you on their own. Manual installation with Docker Compose is a better choice if you want to open the peer port, control the version yourself, or integrate Transmission into your own environment.
The One-Click App doesn’t have a default password. A username and password are generated during installation and are available in the app settings (gear icon), under the App environment tab: SERVICE_USER_ADMIN is the username, and SERVICE_PASSWORD_ADMIN is the password. For a manual installation, use the values you set with USER and PASS in the Compose file.
Yes, for legal content such as Linux distributions, open-source releases, works under a Creative Commons license, or your own files. Under our Terms and Conditions, you’re responsible for all content on your server and must not use it for illegal purposes. Sharing copyrighted content without permission isn’t allowed and may result in your service being suspended.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.