What it is
Jellyfin is a free, open-source media server that organizes and streams your movies, TV, music, and photos to any device through a web browser or native apps. Unlike commercial platforms it has no license keys, no telemetry, and no cloud dependency — you own the server and the data.
Why host it offshore
Hosting Jellyfin on a no-KYC, crypto-paid VPS keeps your media library and viewing habits off any provider's identity records, and offshore privacy-tier jurisdictions add legal distance from data-retention regimes. Unmetered bandwidth means large libraries and multiple remote streams don't rack up per-gigabyte transfer bills the way they would on a mainstream cloud.
A working reference setup
Copy this onto a fresh KernelVPS instance. Replace the placeholders, then bring it up.
# 1. Create data directories on the host
# mkdir -p /srv/jellyfin/{config,cache} /srv/media
#
# 2. Save this as /srv/jellyfin/docker-compose.yml and run: docker compose up -d
# Web UI is then reachable on http://SERVER_IP:8096 (put a reverse proxy + TLS in front for production)
services:
jellyfin:
image: jellyfin/jellyfin:latest
container_name: jellyfin
user: "1000:1000" # run as an unprivileged host user that owns the volumes
restart: unless-stopped
ports:
- "8096:8096" # HTTP web interface / API
- "8920:8920" # optional HTTPS (only if you terminate TLS in the container)
- "7359:7359/udp" # optional LAN client auto-discovery
- "1900:1900/udp" # optional DLNA
volumes:
- /srv/jellyfin/config:/config
- /srv/jellyfin/cache:/cache
- /srv/media:/media:ro # your library, mounted read-only for safety
environment:
- TZ=Europe/Amsterdam
# For Intel/AMD hardware transcoding (VAAPI), also add:
# devices:
# - /dev/dri:/dev/dri
Ports to open
| Port | Protocol | Purpose |
|---|---|---|
| 8096 | TCP | Primary HTTP web UI and API — the only port you normally expose (behind a TLS reverse proxy) |
| 8920 | TCP | Optional built-in HTTPS if you let Jellyfin terminate TLS instead of a proxy |
| 7359 | UDP | Optional LAN client auto-discovery — leave closed on a public VPS |
| 1900 | UDP | Optional DLNA/SSDP — leave closed on a public VPS |
Which plan you need
VPS Small (2 vCPU / 4 GB)
1-2 direct-play streams, no transcoding — files play as-is. Fine for a personal library streamed to modern clients.
VPS Pro (4+ vCPU / 8 GB)
A few simultaneous 1080p software transcodes. CPU is the bottleneck; more cores = more concurrent transcodes.
GPU VPS or Dedicated (+ Storage plan for the library)
4K and many concurrent transcodes: add a GPU for NVENC/QSV/VAAPI hardware transcoding, and pair with a Storage plan when the library outgrows local NVMe.
Best locations: Any of the 15 locations work, but for a private media server the six privacy-tier jurisdictions (NL, CH, RO, IS, MD, LU) are the best fit: Switzerland and Iceland for the strongest data-protection posture, and the Netherlands and Romania for high-throughput European peering that keeps remote streaming smooth on unmetered links. Pick the location closest to where you actually watch to minimize latency and transcode buffering.
Hardening checklist
- Never expose port 8096 raw to the internet — put Nginx/Caddy in front with a valid TLS certificate so credentials and streams are encrypted, and only publish the HTTPS endpoint.
- In Jellyfin Dashboard > Networking, disable 'Enable automatic port mapping (UPnP)' and turn off remote DLNA; mount your media volume read-only (:ro) as shown so a compromised container can't alter source files.
- Create a dedicated non-admin user for daily streaming and reserve the admin account for configuration; enable the built-in brute-force/failed-login protection and use long, unique passwords.
- Keep the container on a pinned/updated image and run `docker compose pull && docker compose up -d` on a schedule — Jellyfin ships frequent security fixes; the unprivileged user:"1000:1000" mapping limits blast radius.
- Front the server with the included DDoS protection and consider restricting the admin/dashboard path by IP allowlist or a VPN, so only the public streaming endpoint is reachable.