Direct answer: RustDesk is an open-source remote desktop whose client and server you can run yourself. The screen gets captured, compressed as video, and delivered over a peer link or a relay.

The trending query rustdesk/rustdesk sits on GitHub Trending (Rust) on November 25, 2026. The repository packages a full remote-access stack: capture, encode, transport, and permissions, all in one open codebase.

Remote desktop is easy to use and hard to build. Every frame of a live screen has to cross a network faster than a human notices, on connections that rarely let two computers talk directly.

Capture, encode, transmit

The pipeline starts with grabbing the screen, which modern systems expose as GPU-backed frame capture, a big step up from slow screenshot loops. Each frame then reaches a video encoder, and remote desktop favors codecs tuned for latency over codecs tuned for beauty.

The encoder faces a hard budget: produce a frame in a few milliseconds, or the cursor lags behind the hand. Change detection helps, because most of a typical screen stays identical between frames, and sending only what moved cuts bandwidth by a wide margin.

captureencoderelaydecodeframes travel direct when routers allow it

Crossing NAT

Most computers sit behind routers that block incoming connections, a setup called NAT. Two machines that both want to talk can punch a direct path with help from a server, and when that fails, traffic flows through a relay instead.

RustDesk splits this across two server programs: one handles rendezvous, introducing peers to each other, and the other relays traffic when a direct path is impossible. Both are small enough to run on a cheap cloud box, which is why the self-hosted setup appeals to teams.

AspectDirect peer pathRelay path
LatencyLowest, machine to machine.Adds one server hop.
Works whenRouters allow the handshake.Always, at server cost.
BandwidthPeer networks carry it.The server pays for it.
ControlTwo operators at the ends.Whichever side hosts the relay.
missedyour Brain mapquiz yourselfmasteredWatch your weak spots turn green.

Drop in your PDF - it doesn't leave your device.
Every miss becomes a red node on your map.
Free plan: 21 nodes, no card, no countdown.

Open Brain - free

Permissions and trust

Remote access is powerful, so the permission model carries real weight. A session should announce itself, require explicit acceptance, and restrict input until the person at the screen approves it. Self-hosting adds a second layer: the ID and relay servers run on infrastructure the operator owns, so the traffic path stays under their control.

For defenders the same mechanics work both ways: any remote-access tool is also a tool an intruder would like to use. Knowing what a session should look like, consent prompts, a known server, an active window, is what turns the software from a risk into a tool.

Key takeaways

  • A remote desktop is a streaming system: capture the screen, encode frames under a strict latency budget, and transport them across networks that block direct paths.
  • Change detection keeps bandwidth low, because most of a screen stays still between frames and only the differences need to travel.
  • NAT keeps most machines unreachable from outside, so remote tools lean on rendezvous servers and relays, and RustDesk ships both as self-hostable programs.
  • Permission prompts, visible sessions, and owning your own relay server are the pieces that make remote access defensible.

Quick answers

What is RustDesk?
An open-source remote desktop client and server pair, positioned as a self-hostable alternative to commercial remote-access tools.

Why does remote desktop need a relay?
Routers behind NAT block incoming connections, so when two peers cannot punch a direct path, a relay forwards the traffic.

How does it keep latency low?
GPU-backed capture and latency-tuned video encoding, plus sending only the parts of the screen that changed between frames.

What are hbbs and hbbr?
The two open-source server programs: the ID and rendezvous service that introduces peers, and the relay that carries traffic when a direct path fails.

Where does the code live?
The repository on GitHub holds client and server code, and the trending page is where it surfaced today.

One thing to do tonight

Open the repository and read the two server programs' documentation, which takes about ten minutes and explains the rendezvous and relay roles in plain language. Then picture the last remote session you joined and name each hop it took, from screen capture to the pixel that appeared on your machine. One traced session makes the whole transport stack visible.