M. ZAHAN // SENIOR SYSTEMS ARCHITECTURE
01 SYSTEM ENGINEERING
02 ALGO TRADING
03 FULL-STACK
04 AUTOMATION
05 AI SYSTEMS
> INITIALIZING QUANTUM SYSTEMS CORE...
0%
Theme:
Active Currency:
Home Articles & Case Studies Services Products
ZDM Z Download Manager (IDM alternative)
APP
ZDM Overview & Features Download for Windows & Linux Speed Benchmarks vs IDM IDM vs ZDM Comparison Matrix zAds YouTube Blocker (Download ZIP) User Guide & Documentation
Free Web Utility Tools
QuickInvoice Studio CleanReceipt Studio QuickSign & PDF Stamp SquashPix Compressor QuoteCraft Studio PaySlip Pro QRCraft Studio FeeCalc Pro GlassUI Studio MarkdownDocs SEO Audit Checker Keyword Research & Density Viral Hashtag Generator YouTube Tags Generator YouTube Title & Description
Resources Hub
Books & Guides Tools I Use Business Ideas
AI Prompts Vault
Tons of Prompts: AI Image Gen, Midjourney & Dev
Job Board & Marketplace New Contests & Competitions Win Cash
Community & About
Portfolio & Works Community Forum
Live Discussion Hub
Live
About M. Zahan Contact & Hire
Track Order
Sign In / Join Community
ZDM / Help & Docs / Downloading / Run ZDM on a server

Run ZDM on a server

Downloading Verified for ZDM v2.0 View source on GitHub

Run ZDM on a server

Run Zahan Download Manager on a home server or a NAS (Docker, Unraid, any Linux machine) without a window, and send it downloads from your phone or your browser: the server downloads them into its own folders, such as a network share.

It is the same ZDM as on a desktop: its list, categories, queues, Scheduler, speed limits and torrents. You control it with the remote control's page (from any phone or computer on your network), the browser extension pointed at it, or its command line.

New: the server mode is new in this version. Please tell us how it goes.

With Docker

Build the image from ZDM's source (a published image comes later):

git clone https://github.com/imzahan/ZDM
cd zdm
docker build -t zdm .

The first build is long (up to an hour on a small server: the whole program is optimised as one). The image is small, about 175 MB: Debian's slim base, ZDM's two programs and the certificates downloads are checked against. It needs no desktop libraries: ZDM loads those only to open a window, which a server never does.

Then run it, with a folder for its settings and one for the downloads. Make both folders first, as the user ZDM will run as: a folder Docker makes for you belongs to root, and ZDM can't use it.

mkdir -p /srv/zdm-config /srv/downloads
docker run -d --name zdm --restart unless-stopped \
  -p 8463:8463 \
  -v /srv/zdm-config:/config \
  -v /srv/downloads:/downloads \
  --user "$(id -u):$(id -g)" \
  zdm
  • /config keeps the list, the settings, the certificate and the paired devices.
  • /downloads is where files land: each category has its folder inside (Music, Video, Torrents…). Mount a network share there to download straight onto it.
  • --user: the user that owns those folders (ZDM runs as no particular user).

docker/compose.yml does the same with Docker Compose.

Pair your phone

docker logs zdm shows the address to open and, while no device is paired, a pairing code with a QR code:

The remote control listens at: https://172.17.0.2:8463/
Its certificate's SHA-256 fingerprint: DE:26:7F:…
No device is paired yet. Open the address (or scan this) and enter the code 1037 1606 …

Inside a container, the address ZDM finds is the container's own: give it the one you open, the server's address with the port you published, as -e ZDM_REMOTE_URL=https://192.168.1.10:8463/, and the log and the QR code show that one. Then pair as Control ZDM from your phone says. For another code, at any time:

docker exec zdm zdm-cli pair

To open the page by the server's name (https://nas.local:8463/), give ZDM that name: -e ZDM_REMOTE_HOSTS=nas.local (several: separated by commas). Other names are refused, so that no web page can reach ZDM through a name of its own.

On Unraid

docker/unraid.xml is a template: copy it to /boot/config/plugins/dockerMan/templates-user/ on the flash drive, then Docker → Add Container and pick zdm. It maps /config to appdata, /downloads to a share, the port 8463, and runs as nobody:users (99:100), as Unraid's shares expect. The image must be built first (above), on the server or pushed to a registry you use. If the container's log says a folder belongs to another user, give it to nobody:users once: chown -R 99:100 /mnt/user/appdata/zdm.

Without Docker

On any Linux machine with ZDM installed (the .deb, .rpm, AppImage or tar.gz):

zdm --headless --data ~/zdm-server --downloads /srv/downloads
Flag Or the variable What it sets
--data <folder> ZDM_DATA_DIR the list, settings, certificate and paired devices
--downloads <folder> ZDM_DOWNLOADS where downloads go (each category's folder inside)
--port <number> ZDM_REMOTE_PORT the remote control's port (8463)
--listen <address> ZDM_REMOTE_LISTEN where it listens: every local network address unless given
--hosts <names> ZDM_REMOTE_HOSTS names besides its addresses the page may be opened by
ZDM_REMOTE_URL the page's address as you open it, shown with the pairing code

The remote control is on in this mode (ZDM_REMOTE=off turns it off). It stops cleanly, saving its list, when the system stops it (docker stop, systemd, Ctrl+C). It works on Windows and macOS too, the same way.

The command line talks to it as to a desktop ZDM, with the same data folder: ZDM_DATA_DIR=~/zdm-server zdm-cli status (once api on), pair, and adding an address: zdm /d https://example.com/file.zip.

Send downloads from your browser

In the browser extension's menu, Send downloads to → Another Zahan Download Manager (a server): type the server's address, open it once in that browser to accept its certificate, then enter a pairing code (pair above). Downloads the extension catches, and Download with Zahan Download Manager on a link, then go to the server instead of this computer. The browser's cookies are not sent to the server: a download that needs you to be signed in to a site stays with this computer.

What a server doesn't do

  • Video pages (yt-dlp) and image galleries need their helpers, which the image doesn't include.
  • Nothing opens a window: a download that would ask a question (a duplicate, files already there) takes the choice set in the settings, or isn't added.
  • Don't publish the port on the internet; reach your home network through a VPN instead.