Technology

TeamViewer lost me to a lightweight open-source tool I now run myself

TeamViewer lost me to a lightweight open-source tool I now run myself


TeamViewer, a popular remote desktop client, has a usable free plan for personal use. I mostly used it to help elderly friends and family for no monetary benefit, but it flagged my account for commercial use and prompted me to upgrade. There are other remote desktop tools worth considering, but most of them are either too basic or come with the same restrictions once you cross an invisible usage threshold.

So I went looking for an alternative, this time needing something truly free, even if that meant self-hosting it. That’s how I found RustDesk, an open-source remote desktop client with a self-host option, and I haven’t opened TeamViewer since.

RustDesk self-hosting keeps access fully yours

An open-source remote desktop you can run on your own server

RustDesk is an open-source remote desktop client that works across Windows, Linux, macOS, and Android. The interface is split into two panels. One side shows your device’s ID and one-time password, which is what you share with whoever needs to connect. The other side has a field where you type the remote device’s ID to start a session. If you’ve used TeamViewer before, you’ll recognize the layout immediately.

Out of the box, RustDesk routes connections through its public relay servers. That works for occasional use, like helping a family member troubleshoot a printer. But the public servers are shared by over a million endpoints, which means bandwidth is limited and connections can feel slower than they should. RustDesk also now requires you to log in with a third-party identity provider (Google, GitHub, etc.) when using the public server, a measure they added to curb scam abuse.

Privacy is a bigger issue. On the public server, your connection metadata, including device IDs, IP addresses, and session times, passes through infrastructure you don’t control. There have been reports of unsolicited connection prompts on devices using the public server, since attackers can probe the 9-to-10-digit ID range. For anything beyond casual, occasional use, RustDesk itself recommends self-hosting.

You can run your own RustDesk relay and ID server using Docker, and once you do, all remote desktop traffic stays on hardware you manage.

Setting up RustDesk

From client install to self-hosted server in minutes

To use RustDesk, download the client on both machines, note the ID and password on the remote device, type that ID into the host machine, and you’ll be connected. Once the session is live, you get a toolbar with useful extras: screen recording, file transfer, remote terminal, and even a camera viewer for the remote device’s webcam. The interface is consistent across platforms, so once you learn it on Windows, it feels the same on Linux or macOS.

To self-host, you need Docker running on a machine you want to use as the server. If you’ve set up Docker containers for other self-hosted services, this will feel familiar. Start by creating a directory for RustDesk and moving into it:

mkdir ~/rustdesk-server && cd ~/rustdesk-server

Then create a docker-compose.yml file:

nano docker-compose.yml

Paste in the following configuration, which spins up two containers: hbbs (the ID server) and hbbr (the relay server). Together they handle everything RustDesk’s public servers normally do:

services:
  hbbs:
    container_name: hbbs
    image: rustdesk/rustdesk-server:latest
    command: hbbs
    volumes:
      - ./data:/root
    network_mode: "host"
    depends_on:
      - hbbr
    restart: unless-stopped

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

Save with Ctrl+O, Enter, then exit with Ctrl+X. Then start the containers:

sudo docker compose up -d

Once they’re running, grab your security key:

cat ./data/id_ed25519.pub

And your server’s IP address:

hostname -I | awk '{print $1}'

Then point your RustDesk clients to your private server. Open the RustDesk settings, go to Network, click ID/Relay Server, paste your server’s IP into both the ID Server and Relay Server fields, and drop the security key into the Key field. A green “ready” indicator confirms the switch. After that, every remote session routes through your server instead of the public one. The latency improvement on a local network is noticeable, and connections feel more stable since you’re not sharing bandwidth with everyone else.

The free tier covers most home lab needs

The paid version adds a web console, but most users won’t need it

RustDesk pricing on the web page

RustDesk’s self-hosted server comes in two versions: the free open-source edition and a paid Pro tier. The free version handles all the core functionality. You get the relay server, the ID server, end-to-end encrypted connections, and unlimited device access. There’s no cap on how many machines you can connect, and no per-user licensing.

What the free tier lacks is the web-based management console. On the Pro version, you get a browser GUI for managing devices, users, and permissions from a central dashboard. If you’re running an IT helpdesk or managing remote access for a team, that kind of visibility is worth the cost. But for a home lab or personal use, when you’re connecting to a handful of machines you already know, the web console is a convenience, not a necessity.

I run the free version and manage everything through the RustDesk client directly. The setup reminds me of my hybrid cloud setup with Nextcloud and Docker, where the initial configuration took a weekend, but daily use afterward required almost zero maintenance. RustDesk is no different. Once the Docker containers are up and the clients are pointed to the right server, there’s nothing to babysit. The containers restart automatically if the server reboots, and updates are as simple as pulling a new Docker image.

If you do outgrow the free tier, upgrading to Pro is mostly about uncommenting a few extra ports in your Docker Compose file and adding a license key. You don’t have to redo the entire setup.

RustDesk Logo

OS

Windows, macOS, Linux, Android, iOS

Developer

Purslane Limited

RustDesk is a free, open-source remote desktop tool offering self-hosted or public-server connections, cross-platform support, end-to-end encryption, and a privacy-friendly TeamViewer alternative for remote access and file transfer.


RustDesk won’t replace TeamViewer for everyone, but it did for me

I’ve been running RustDesk for a few months now without any hiccups. Self-hosting anything is less intuitive than just downloading an installer and being done with it. You need Docker, a machine to run it on, and the willingness to paste an IP address into a settings panel.

But the alternatives are either pricey or limited in what they offer on their free plans. TeamViewer flagged me for doing exactly what its free tier is supposed to allow. RustDesk hasn’t asked me for a dime, and since I control the server, the only usage policy I have to worry about is my own.



Source link