Guide
Run your own RustDesk relay server
Keep remote-control traffic inside your network by hosting the RustDesk rendezvous and relay servers yourself.
- Tool
- RustDesk
- Category
- Remote access & support
- Updated
- 2026-11-05
Why self-host the relay
By default RustDesk clients coordinate through public rendezvous servers. For corporate use you usually want that coordination, and the relayed session data, to stay on infrastructure you control.
Self-hosting means running two services: hbbs (the rendezvous/ID server) and hbbr (the relay). Both are lightweight and run comfortably on a small Linux host.
What you need
A Linux host reachable by your clients, with TCP ports 21115–21119 and UDP 21116 open.
A fixed address (IP or DNS name) that every client can resolve.
Point clients at your server
In each client, open Settings → Network and set the ID server and relay server to your host’s address, then apply the public key from the server.
For fleet rollout, bake these values into the client configuration so machines connect to your relay automatically.
Verify it is working
Connect between two machines and confirm the session establishes. On the server, watch the hbbs and hbbr logs to confirm the relay is handling the connection rather than a public server.