selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

RustDesk Server logo

Self-host RustDesk Server

1.1.16

Open-source remote desktop ID and relay server

ReleaseOpen SourceAGPL-3.0
sudo docker run --name hbbs -v ./data:/root -td --net=host --restart unless-stopped rustdesk/rustdesk-server hbbs
Updated3 months ago
LanguageRust
Setup difficultyEasy
Stars
10 720
Ports
21115 (hbbs TCP: NAT type test (PORT-1), also the loopback console address), 21116 (hbbs TCP+UDP: ID registration, heartbeat, rendezvous and TCP hole punching), 21117 (hbbr TCP: relay traffic), 21118 (hbbs TCP: WebSocket rendezvous, only needed for web client support), 21119 (hbbr TCP: WebSocket relay, only needed for web client support)
Docker
rustdesk/rustdesk-server
RustDesk Server screenshot 1RustDesk Server screenshot 2RustDesk Server screenshot 3RustDesk Server screenshot 4RustDesk Server screenshot 5RustDesk Server screenshot 6RustDesk Server screenshot 7RustDesk Server screenshot 8RustDesk Server screenshot 9RustDesk Server screenshot 10RustDesk Server screenshot 11RustDesk Server screenshot 12RustDesk Server screenshot 13RustDesk Server screenshot 14RustDesk Server screenshot 15RustDesk Server screenshot 16

What is RustDesk Server?

RustDesk's self-hostable backend, shipped as the open-source edition of the server program: hbbs is the ID, rendezvous and signaling service clients register with, and hbbr carries session traffic whenever two peers cannot reach each other directly. The ID server also runs a NAT type test and TCP hole punching, and can push every session through the relay instead. Access is authenticated by an ed25519 key pair that hbbs loads or generates on first start, and the relay can validate the same key. Operators get relay bandwidth ceilings with automatic downgrading of long heavy connections, per-IP block and speed-limit lists, loopback TCP commands for changing those settings at runtime, and extra WebSocket listeners for browser-based clients. Registration state lives in a bundled SQLite file, so no database service is required. The docs recommend Docker Compose with host networking, and also cover plain docker run, Podman Quadlet units, Debian packages, a community systemd install script, Windows under PM2 or NSSM, and Synology NAS; hardware demands are minimal enough for a Raspberry Pi. This edition is free with community support only: no web console, no API, no OIDC or LDAP, no 2FA, and no device management — those live in the paid RustDesk Server Pro, and rustdesk-server-demo is suggested if you want to write your own server.

RustDesk Server alternatives

Should you self-host RustDesk Server?

RustDesk Server scores 75/100 on selfhost.directory (how scoring works) and ranks #4 of 22 in Remote Desktop. It has 10 720 GitHub stars, +207 in the last 30 days.

It shipped 2 stable releases in the past year. The latest, 1.1.16, came out on 20 July 2026. New versions land roughly every 6 months.

Setup is easy: most people get it running in one sitting. An official Docker image is available. It is AGPL-3.0-licensed and written mostly in Rust.

Its closest alternative on selfhost.directory is rustdesk (92/100, 128 812 stars). It scores higher overall, so compare the two before you pick. See RustDesk Server vs rustdesk side by side.

Features

  • Built-in SQLite storage
  • CLI utilities
  • Config via flags, env vars or config file
  • Forced relay mode
  • ID / rendezvous signaling server
  • IP blocklist and bandwidth blacklist
  • Key-based connection encryption
  • NAT hole punching
  • Relay bandwidth limits / QoS
  • Relay server
  • Runtime console over loopback TCP
  • Two-factor authenticationListed as a Pro feature, not part of the OSS server.
  • Web Admin ConsoleWeb console is part of RustDesk Server Pro; port 21114 is only available in the Pro version.
  • WebSocket endpoints for web clients

RustDesk Server README

How to install RustDesk Server

Install RustDesk Server with Docker

You need to have Docker/Podman installed to run a rustdesk-server as a Docker container.
Environment variables
ALWAYS_USE_RELAY, RUST_LOG; s6 image additionally handles RELAY, ENCRYPTED_ONLY, KEY_PUB, KEY_PRIV
sudo docker image pull rustdesk/rustdesk-server
sudo docker run --name hbbs -v ./data:/root -td --net=host --restart unless-stopped rustdesk/rustdesk-server hbbs
sudo docker run --name hbbr -v ./data:/root -td --net=host --restart unless-stopped rustdesk/rustdesk-server hbbr

Recommended install path: `bash <(wget -qO- https://get.docker.com)`, `wget rustdesk.com/oss.yml -O compose.yml`, `sudo docker compose up -d`. Host networking only works on Linux.

How to configure RustDesk Server

  • KEY- (hbbs), empty (hbbr)hbbs/hbbr: public key clients must use, a base64 secret key, or `-` / `_` to load or generate an id_ed25519 key pair; empty disables key validation. Flag -k / --key.

    values: -, _, public key, base64 secret key, empty

  • BINDall interfacesLocal IPv4/IPv6 address that all hbbs (or hbbr) TCP, UDP and WebSocket listeners bind to; available since 1.1.17. Flag -b / --bind.

    values: IPv4 or IPv6 address

  • PORT21116 (hbbs), 21117 (hbbr)Main listening port. hbbs also binds PORT-1 (NAT type test) and PORT+2 (WebSocket); hbbr also binds PORT+2, and a PORT env var makes hbbr listen on PORT+1. Flag -p / --port.
  • RELAY-SERVERShbbs: comma-separated host or host:port relay override handed to clients; leave empty when hbbr shares the hbbs address and port 21117. Flag -r / --relay-servers.

    values: host or host:port list

  • RMEM0hbbs: UDP receive-buffer size in bytes; the OS limit (net.core.rmem_max) must be raised first. Flag -M / --rmem.

RustDesk Server releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

FAQ

What do clients need after server installation?

Clients usually need the ID Server address and the server public key; the API Server only matters when configuring Pro clients.

What is the best way to run RustDesk Server OSS in Docker?

Docker Compose with network_mode: "host" is described as the simplest and most reliable option for most Linux deployments.

What is the recommended way to install RustDesk Server OSS?

Docker is recommended for most deployments because it is the easiest to reproduce, upgrade and move between servers; a systemd install script or Debian packages suit native Linux setups.

More in Remote Desktop

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…