Open Ports on RustDesk

The ports in this document are the default. Ports used are configurable on the server and, if customized, you'll need to translate to what you use.

RustDesk uses ports for its various functions and services. On the server, these ports must be open for access, and on the clients, the ports must be accessible by the client.

On your firewall, open/PAT/NAT the following to the Rust Server.

Additionally, if using Pro and do not have a proxy set up, you may need to open port 443 (https)

Following table shows what the ports are used for.

Port ServiceProtocol Required Notes
21114 HBBS TCP No Default port for API (Pro only)
21115 HBBS TCP Yes Default port for the RustDesk server.
21116 HBBS UDP Yes Used for client connections to the server.
21117 HBBR TCP Yes Used for Relay Server (hbbr)
21118 HBBS TCP No WebSocket ports for web client
21119 HBBR TCP No WebSocket ports for web client
443 HTTPS TCP No Pro, if no proxy set up or as failover

Again, not all of these are needed. If you are not using the API, for example, you do not need port 21114. If you are in a setup where the relay is never used, you can ignore 21117 and 21119. And, if you're not using WebSocket, you obviously don't need 21118 and 21119.

However, it is common practice to forward/unblock ports 21114-21119 on both UDP and TCP.

See https://rustdesk.com/docs/en/self-host/ for details