r/rustdesk • u/hostanywhere • 17h ago
Direct IP access now that the public server needs a login: setup notes from Windows, Mac and Linux
Since RustDesk's public servers started requiring a sign-in, I moved my own machines to Direct IP access over a private network. Sharing what I ran into, since a few of these weren't obvious.
The setup Every machine is on a private overlay network (WireGuard-based), so each one has a stable private IP. On the machine being controlled: Settings → Security → Enable direct IP access (TCP 21118) + a permanent password. Then type the private IP into "Control Remote Desktop" instead of an ID. No ID server, relay or account involved, and no ports forwarded on the router. Any overlay works for this (Tailscale, ZeroTier, plain WireGuard, or HostAnywhere, which I work on).
Things that tripped me up
- Security section hidden on macOS (1.5.3). Settings showed the abuse notice and a login prompt instead of the Security options. Fix: quit RustDesk, add
direct-server = 'Y'under[options]in~/Library/Preferences/com.carriez.RustDesk/RustDesk2.toml, reopen. Port 21118 started listening right away. - Nothing listening on 21118 even with the box ticked. The background service wasn't running, so the setting never saved. Start the service first, then enable direct IP.
- Port 21118 listens on every interface, not just the VPN. Anyone on the same LAN (or café Wi-Fi, on a laptop) can reach it. Turn on "Use IP whitelisting" and add only the controlling machine's private IP.
- "Direct and unencrypted connection" warning. Accurate: direct IP mode adds no RustDesk encryption. The session is only protected by whatever network it's running over, so keep it inside the VPN/overlay.
- Linux server with no monitor. On a headless XFCE box RustDesk has no physical display to capture, so I used xrdp for that one instead. Wayland desktops can also ask someone at the screen to approve each session, so Xorg is more reliable for unattended access.
- Mac from Windows: paste with Ctrl+V, not Cmd+V. Set View style → Scale adaptive if a Retina screen spills off the window.
- Alt+Tab goes to the remote machine while the session has focus. There's no "don't send special keys" toggle like RealVNC has; windowed mode plus the taskbar was my workaround.
RustDesk vs VNC on a Retina Mac Same network path. macOS Screen Sharing via a VNC viewer from Windows lagged badly when scrolling a long page; RustDesk was smooth. One setup, not a benchmark, but the difference was obvious.
I wrote the whole thing up with screenshots, including locking 21118 down with firewall rules: https://hostanywhere.io/blog/rustdesk-remote-desktop-to-any-device
Curious whether others have found a cleaner fix for #1, or a way to stop Alt+Tab being captured.

