2026-07-24 08:50:50 +08:00
2023-02-16 15:23:31 +08:00
2026-07-21 06:05:22 +08:00
2023-02-08 16:45:30 +08:00
2026-07-23 20:13:48 +08:00
2026-07-24 08:50:50 +08:00
2026-07-23 18:43:32 +08:00
2023-07-06 00:50:11 +08:00
2026-07-23 18:46:09 +08:00
2026-07-23 20:13:48 +08:00
2022-05-12 20:07:45 +08:00
2023-02-16 15:23:31 +08:00
2026-07-23 20:13:48 +08:00
2026-07-23 20:13:48 +08:00
2025-01-21 01:09:21 +08:00
2022-05-12 22:11:06 +08:00
2026-07-24 08:50:50 +08:00

RustDesk Server Program

build

Download

Manual

Configuration & environment variables

FAQ

How to migrate OSS to Pro

Self-host your own RustDesk server, it is free and open source.

How to build manually

cargo build --release

Three executables will be generated in target/release.

  • hbbs - RustDesk ID/Rendezvous server
  • hbbr - RustDesk relay server
  • rustdesk-utils - RustDesk CLI utilities

You can find updated binaries on the Releases page.

Configuration

hbbs and hbbr can be configured with command-line flags, environment variables, or an .env / config file. Run hbbs --help or hbbr --help to see the available flags.

The most common options:

Option Flag Env var Applies to Purpose
Key -k KEY hbbs, hbbr Server key; -k _ requires encryption
Port -p PORT hbbs, hbbr Listening port (hbbs 21116, hbbr 21117)
Relay servers -r RELAY-SERVERS hbbs Relay address given to clients, e.g. your domain
Force relay ALWAYS_USE_RELAY hbbs Y disables direct connections
Log level RUST_LOG hbbs, hbbr e.g. debug (default info)

See docs/environment-variables.md for the full list of variables, the file/flag/env precedence rules, database and relay bandwidth tuning, Docker image variables, and examples.

If you want extra features, RustDesk Server Pro might suit you better.

If you want to develop your own server, rustdesk-server-demo might be a better and simpler start for you than this repo.

Installation

Please follow this doc

S
Description
Languages
Rust 87.2%
NSIS 4.3%
JavaScript 3.6%
Shell 3.4%
Dockerfile 0.5%
Other 1%