rustdeskandClaude Opus 5.5 8affc6a237 Bound console reply writes with a deadline
Since #717 the console sends its reply with write_all, which waits until
every byte is sent. A local client that sends a command and then stops
reading would hold the task and its socket forever. Give the write the
same 1 s deadline as the read above it, and log a reply that fails or
runs late instead of dropping the error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JAxkkiaGp2k8okvs4MpCUq
2026-11-07 13:06:42 +08:00
2023-02-16 15:23:31 +08:00
2026-08-07 16:56:36 +08:00
2023-02-08 16:45:30 +08:00
2026-07-23 20:13:48 +08:00
2026-10-10 16:51:29 +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
2026-07-24 10:56:56 +08:00
2023-02-16 15:23:31 +08:00
2026-10-10 17:34:18 +08:00
2026-10-10 17:34:18 +08:00
2026-07-24 10:56:56 +08:00
2022-05-12 22:11:06 +08:00
2026-07-24 10:56:56 +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.

Important

Need more features? RustDesk Server Pro might suit you better.

Want to develop your own server? Start with rustdesk-server-demo, a simpler starting point than this repository.

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 hbbs loads/generates one by default
Bind address -b BIND hbbs, hbbr Local IP address to listen on (default: all interfaces; requires 1.1.17+)
Port -p PORT hbbs, hbbr Listening port (hbbs 21116, hbbr 21117)
Relay servers -r RELAY-SERVERS hbbs Override when the relay uses a different address or a non-standard port
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.

Installation

Please follow this doc

Languages
Rust 89.5%
NSIS 3.5%
JavaScript 2.9%
Shell 2.8%
Dockerfile 0.4%
Other 0.9%