What “RustDesk Server” refers to
The client on a computer is not the server. The server is the meeting point. The self-host documentation describes two executables. hbbs is the ID server, also called the rendezvous or signaling server. hbbr is the relay. Install scripts, Docker Compose, and the deb packages start both. There is also RustDesk Server Pro, a separate commercial product from the RustDesk project, with a web console, API, OIDC, LDAP, two-factor authentication, and device management. Pro is purchased from that project. The open-source server does not include those console features.
Public infrastructure and a server you run
A fresh client uses the public servers. The window can report that it is ready, and a note on the client suggests setting up your own server if you want a faster path. Public infrastructure is the right starting point for two computers you control and a low need to choose where signaling happens.
Self-hosting moves hbbs and hbbr onto an address you manage. Clients then store that address and the server’s public key. The session content is still a client-to-client concern: the project describes peer-to-peer connections with end-to-end encryption based on NaCl. The server’s job is introduction and, when hole punching fails, relay. Self-hosting does not by itself review your passwords, and it does not make an unauthorized connection acceptable.
Choose self-hosting when you want the signaling path off the public service, when a network policy requires it, or when you are prepared to patch and monitor a service that is open to the internet. Do not choose it only because a forum said the public servers are “down” unless you have actually confirmed your client cannot reach them.
What the ID server and the relay each do
While a client is running, it keeps the ID server informed of how to reach it. When computer A asks for computer B’s ID, hbbs tries to help the two machines connect directly. The project’s self-host page says hole punching succeeds in the majority of cases and the relay is then unused. When a direct path fails, A and B communicate through hbbr.
If hbbs is wrong, clients never become ready and you will see rendezvous errors. If hbbs is right and hbbr is blocked, direct connections may still work and only the fallback fails. Those are different outages. “Failed to connect via rendezvous server” points at hbbs or the network in front of it. “Failed to connect to the relay server” points at hbbr, after a direct attempt did not succeed.
Infrastructure requirements
The open-source install guide, reviewed December 1, 2026, says hardware requirements are low: a basic cloud server is enough, CPU and memory needs are described as minimal, and a Raspberry Pi-class machine can run it. It does not publish a numbered core or RAM minimum, so this page will not invent one. The same page says relay traffic, when a direct connection fails, is about 30 KB/s to 3 MB/s for a 1920×1080 screen, and around 100 KB/s for ordinary office work. Bandwidth matters more than a large processor when many sessions fall back to the relay.
Docker is the path the project documents most clearly for the open-source server. The Docker guide’s usual Linux example pulls rustdesk/rustdesk-server and runs one container for hbbs and one for hbbr, with a shared data volume. Host networking is suggested on Linux so the services see the real client address. It does not apply the same way on Docker Desktop for Windows or macOS. Read the current Docker page before you copy a command, because flags change.
Some people run that image on a NAS that supports Docker, including systems marketed as TrueNAS or similar. The RustDesk side is still the official image and the ports below. The NAS side is that vendor’s container networking, which can put the service behind another firewall. Rustdeka does not publish a click-path for every NAS interface.
A Pro installation is a different product with its own license and a console on a port the open-source list marks as Pro-only. If you need the console, API, or SSO, you are in Pro’s documentation and Pro’s commercial terms, not in an OSS tutorial with extra checkboxes.
Ports the documentation assigns
Defaults below are from the self-host and Docker pages reviewed on December 1, 2026. If you change the base port, the offsets change with it: hbbs also listens on its port minus one and plus two, and hbbr listens on its own port plus two for WebSocket.
| Port | Process | Role |
|---|---|---|
| 21114 TCP | hbbs | HTTP API for RustDesk Server Pro. Not required for the open-source server. |
| 21115 TCP | hbbs | NAT type test. |
| 21116 TCP and UDP | hbbs | Registration, heartbeat, and TCP hole punching. UDP is required, not optional, for that registration path. |
| 21117 TCP | hbbr | Relay. |
| 21118 TCP | hbbs | WebSocket rendezvous for the web client. |
| 21119 TCP | hbbr | WebSocket relay for the web client. |
The minimum set named for ordinary client connections is 21115 through 21117, with 21116 open for both TCP and UDP. Ports 21118 and 21119 can stay closed if you do not use the web client. There is also a mode that exposes only TCP 443 and forces relay over WebSocket, which disables direct peer-to-peer connections. Use that only when you understand you have given up hole punching.
Where the public key comes from
On first start, hbbs generates a key pair. The public file is id_ed25519.pub. The private file is id_ed25519. Clients receive the public key in the Network settings, in the Key field. The Android guide describes that field as what you enter for the server and calls it required for encryption in that screen’s wording. Keep the private file on the server. Do not paste it into a chat or into this website. If you move the containers, keep the data volume. A new key makes every client look misconfigured until you update them.
Relay key checking is a separate switch. The server project’s environment notes say hbbr does not require the key unless you set one. Turning key checking on means hbbr must have the same key material. Decide that on purpose. An empty relay key is a tradeoff the documentation tells you to make deliberately on an exposed server.
Configuration choices that affect security
- Expose 21118 and 21119 only through a reverse proxy if you use the web client. The Docker guide warns that hbbs and hbbr trust
X-Real-IPandX-Forwarded-Foron those WebSocket ports without validating them. Anyone who can reach the ports directly can spoof an address and confuse rate limits and logs. If you do not use the web client, leave the ports closed. - Put the host behind a firewall that allows only the ports you chose.
- Update the image or the binaries when the project publishes a release. A self-hosted server you never patch is not “more private” in any complete sense.
- Clients must all use the same ID server. A laptop still pointed at the public servers will not meet a desktop pointed at yours.
- Self-hosting does not replace the client password. Read the setup guide for approval modes.
Problems that show up in ordinary deployments
- Not ready / rendezvous failure. hbbs is down, 21116 UDP or TCP is filtered, or the hostname in the client does not resolve to this server.
- Ready, but only some networks connect. Hole punching failed and 21117 is closed, so there is no relay fallback. Symmetric NAT on both sides makes this more likely.
- Key mismatch. The client key is from an old volume or from the private file by mistake. Replace it with the current public key.
- Docker on a desktop operating system. Host networking was copied from a Linux example and the ports were never published.
- Pro console missing. The open-source hbbs process does not serve the Pro web console. Port 21114 will not create that product.
- Works on the LAN, fails from outside. The router has no port forward, or the forward points at the NAS and the NAS firewall drops it.
The user guide covers the client symptoms in less depth. If you want a second person to review a design before you open ports, describe the host you are allowed to administer. Do not send the private key.
Questions
No. OSS gives you hbbs and hbbr. Pro adds the web console and the enterprise controls listed in the project’s self-host comparison. Rustdeka does not sell either one.
TCP 21115, TCP and UDP 21116, and TCP 21117. Add 21118 and 21119 only for the web client, and do not expose those two directly if you can put a reverse proxy in front of them.
No. Self-hosted means you, or an administrator you trust, run it. We can explain the layout. We do not provide a hosted RustDesk relay as part of this website.
Reviewed December 1, 2026 against the self-host overview, the OSS Docker guide, and the rustdesk-server environment notes. Prepared by Rustdeka. Commands on the official pages override any summary here when they differ.