OpenSourcePicks

Open source alternatives to popular software, with live GitHub data

GitHub stats refreshed every day

RustDesk

ID-based remote desktop and support like TeamViewer, with a free relay server you can host yourself

Visit RustDeskGitHubDocumentation

Main features

  • ID and one-time password connections with NAT hole punching and relay fallback
  • Public RustDesk servers by default, or your own ID and relay server
  • Unattended access with a permanent password and system service
  • TOTP two-factor authentication for incoming sessions
  • File transfer, clipboard sync, audio, chat and voice calls
  • TCP tunneling (port forwarding) and a remote terminal
  • Per-session permission toggles, privacy mode and input blocking
  • Local session recording
  • Clients for Windows, macOS, Linux, Android and iOS, plus a web client
  • Android phones and tablets can be controlled remotely
  • Direct IP access on a LAN without any server

What RustDesk does

RustDesk is the open source app closest to TeamViewer and AnyDesk in how it works. Install or run it, and it shows an ID and a one-time password; whoever has both can connect, see the screen and take control after the remote user agrees. With a permanent password and the background service enabled, the same app gives unattended access to your own machines. Sessions include file transfer, clipboard sync, audio, chat, a remote terminal, TCP port forwarding, multi-monitor switching and local recording.

Out of the box, clients use free public ID and relay servers run by the RustDesk team, so occasional support works without any setup. For regular use you can run your own server.

How connections work

The server side consists of two small programs. hbbs is the ID (rendezvous) server: every running client registers with it, and when computer A asks for computer B, hbbs tries to connect them directly through NAT hole punching. If that fails, the session goes through hbbr, the relay server. The docs say hole punching usually succeeds. Neither end needs inbound port forwarding.

The self-hosting guide lists these ports:

Port Used by Purpose
TCP 21115 hbbs NAT type test
TCP and UDP 21116 hbbs Registration and hole punching
TCP 21117 hbbr Relay
TCP 21118, 21119 hbbs, hbbr WebSocket (web client), behind a reverse proxy only
TCP 21114 Server Pro Web console and API

Ports 21115 to 21117 are the minimum. Keep the WebSocket ports closed, or reachable only from your reverse proxy, because they trust forwarded-IP headers. A mode that exposes only TCP 443 also works, but then every session is relayed.

Security

When clients are configured with your server’s public key (the id_ed25519.pub file hbbs creates on first start), ID-based sessions are end-to-end encrypted, and a lock icon in the session shows the status. Direct IP connections, which are off by default, are not encrypted. The controlled side can require a one-time password, a permanent password or a click to accept, add TOTP two-factor authentication (with optional codes via a Telegram bot), trust specific devices and whitelist IP addresses. Separate switches control keyboard and mouse, clipboard, file transfer, audio, camera, terminal, tunneling and remote restart.

Platforms and Wayland

Clients exist for Windows, macOS, Linux (native packages, AppImage and Flatpak), Android, iOS and the web. An Android device can share its screen (Android 6 or later) and accept remote input through RustDesk’s accessibility service, which makes RustDesk one of the few open source tools for supporting phones. iOS devices can only control other machines. RustDesk withdrew its app from Google Play because of scammers; Android builds come from GitHub and F-Droid.

On Linux, Wayland support has been experimental since version 1.2.0 and works in a logged-in session. The docs say reaching the login screen still requires X11. A separate preview build for x86_64 Debian and Ubuntu, announced in August 2026, adds unattended Wayland access including the login screen, but it is not yet part of the standard release.

Self-hosting RustDesk

Docker Compose is the recommended setup; Debian packages and Windows instructions are also documented. RustDesk says one CPU core and 1 GB of RAM handle around 1,000 concurrent relay connections. Then enter the server address and public key in each client, or import a configuration string.

RustDesk Server Pro

The free server only finds and relays devices. What a help desk expects from TeamViewer or AnyDesk is in RustDesk Server Pro: a web console with user accounts, a shared address book, device groups and access control, connection and file transfer logs, OIDC and LDAP sign-in, central security settings, multiple relays, a self-hosted web client and a generator for branded clients with your settings built in. Pro is closed source, licensed by login users and managed devices, and also self-hosted. RustDesk offers no hosted subscription.

Limitations

Without Pro there is no central device list, audit trail or single sign-on, and each client must be configured by hand or by script. Wayland support is incomplete, iOS devices cannot be controlled, and the shared public servers keep no access logs. The project also notes that scammers use RustDesk, including self-hosted servers, as they do other remote tools.

Who it suits

RustDesk fits individuals, IT teams and managed service providers moving off TeamViewer or AnyDesk who want the same ID-and-password workflow on their own server. Teams that need a browser-based console and device management without paying for Pro should look at MeshCentral. The remote desktop guide compares the options.

License details

AGPL-3.0. Client and the free server (rustdesk-server: hbbs, hbbr) are AGPL-3.0. RustDesk Server Pro, which adds the web console, accounts, OIDC/LDAP, audit logs, access control and custom clients, is paid, self-hosted and closed source.

What the GNU AGPL v3 means for you

Technical details

Built with

  • Rust
  • Flutter

GitHub topics

  • android
  • anydesk
  • dart
  • flatpak
  • flutter
  • flutter-apps
  • ios
  • linux
  • macos
  • p2p
  • rdp
  • remote-control
  • remote-desktop
  • rust

Reviewed by the OpenSourcePicks editors from the project's repository and documentation. Something out of date? Tell us.

RustDesk compared with similar tools

AppLicenseSelf-hosting needsHosted versionLast commit
FreeRDPApache-2.0Nothing beyond the appNotoday
MeshCentralApache-2.0Node.js, Database (NeDB built in, or MongoDB, PostgreSQL, MySQL, MariaDB, SQLite)Notoday
MoonlightGPL-3.0*Sunshine or another compatible hostNo2 days ago
noVNCMPL-2.0*A VNC server, websockify (unless the server speaks WebSockets)No3 days ago
RustDeskAGPL-3.0*Nothing beyond the appNotoday
SunshineGPL-3.0*Nothing beyond the appNotoday

An asterisk marks a license with exceptions, such as proprietary directories or paid plugins; see the app page.