Skip to main content
Homelab

RustDesk: The Self-Hosted Open-Source TeamViewer Alternative (2026 Guide)

· · 2 min read

RustDesk is the self-hosted open-source alternative to TeamViewer and AnyDesk. Unlike those, you own the relay server — no third-party company between you and your remote connections, no per-user license fees, no “commercial use detected” nag screens.

Looking to enable multiple concurrent RDP sessions on the same Windows box instead? See our RDP Wrapper guide. RustDesk solves a different problem: secure remote access to multiple hosts from anywhere, with optional self-hosted relay.

Why RustDesk

  • Free forever, open source (AGPL-3.0) — no commercial use traps
  • Self-hostable relay — your traffic never touches a third-party server
  • Cross-platform clients: Windows, macOS, Linux, Android, iOS, web
  • File transfer, clipboard sync, audio, TCP tunneling
  • End-to-end encryption via NaCl (same crypto as Signal)
  • Written in Rust — fast, low memory footprint

Quick start: self-hosted relay server

The RustDesk server has two components: hbbs (rendezvous/signal server, UDP 21116) and hbbr (relay server, TCP 21117). Docker Compose setup:

version: '3'
services:
  hbbs:
    image: rustdesk/rustdesk-server:latest
    command: hbbs -r your-server-ip:21117
    volumes:
      - ./data:/root
    network_mode: host
    restart: unless-stopped

  hbbr:
    image: rustdesk/rustdesk-server:latest
    command: hbbr
    volumes:
      - ./data:/root
    network_mode: host
    restart: unless-stopped

docker-compose up -d and you’re live. Grab the public key from ./data/id_ed25519.pub and paste it (along with your server’s IP/domain) into the RustDesk client Settings → Network → ID/Relay Server.

RustDesk vs. the alternatives

RustDeskTeamViewerAnyDeskJump Desktop
Free personal use⚠️ (commercial detection nags)⚠️ (limited)❌ (paid app)
Self-hostable relay
Open source✅ AGPL-3.0
iOS/Android
File transfer

When to pick RustDesk vs. other options

  • Use RustDesk if: You want TeamViewer-style “just connect” workflow without the licensing drama, and you run a homelab where self-hosting is a feature not a burden.
  • Use RDPWrap if: You specifically need multiple people RDP-ing into the SAME Windows 10/11 box concurrently.
  • Use Jump Desktop if: You want the cleanest iPad/Mac → Windows experience and don’t mind paying once.
  • Use Parsec/Moonlight if: Low-latency gaming is the goal.

FAQ

Is RustDesk really free for commercial use?

Yes. The open-source RustDesk client and server are AGPL-3.0 licensed with no per-seat fees. Commercial RustDesk Pro exists but is optional — the free/self-hosted combo covers 95% of use cases.

Do I have to self-host the relay server?

No — RustDesk has a public rendezvous server at rs-ny.rustdesk.com that works out of the box. But for privacy and reliability, self-hosting takes 5 minutes with Docker and means your traffic never touches a third party.

Last updated: 2026-04-22.

Share this article