r/rustdesk • • 17h ago

Direct IP access now that the public server needs a login: setup notes from Windows, Mac and Linux

Post image
14 Upvotes

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

  1. 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.
  2. 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.
  3. 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.
  4. "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.
  5. 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.
  6. Mac from Windows: paste with Ctrl+V, not Cmd+V. Set View style → Scale adaptive if a Retina screen spills off the window.
  7. 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.


r/rustdesk • • 11h ago

I built an open-source AnyDesk/TeamViewer alternative with a one-command self-hosted server (Rust, Windows + macOS)

0 Upvotes

Hi r/rustdesk,

I do remote IT support for a living and got tired of free-tier limits and

"commercial use" lockouts, so I wrote RemoteFerry: a remote desktop app with

its own rendezvous server that you can host yourself.

**Self-hosting**

git clone https://github.com/pnatale/remoteferry.git

cd remoteferry/deploy

cp .env.example .env # set RF_DOMAIN and RF_TURN_SECRET

docker compose up -d

That gives you the rendezvous server, a coturn TURN relay and TLS. Ports:

80/443 TCP, 3478 TCP+UDP, 49160-49200 UDP. In the app: Settings → Server →

wss://your-domain/ws. There's also an admin dashboard (online devices, active

sessions, bandwidth, kick/block a device, and notices that show up in every

connected app).

**The app** (Windows and macOS, v0.1.8)

- ID + one-time password, or unattended access with a permanent password

- up to 60 fps with adaptive quality, multi-monitor

- clipboard sync, file transfer, remote audio, chat, privacy mode

- auto-reconnect after the remote machine reboots

- address book with online/offline status

**Security**: the server never sees passwords or the session.

- Ed25519 device keys

- SPAKE2 + Argon2id for the password

- end-to-end encrypted WebRTC, peer-to-peer when possible

It hasn't been audited yet, details in the README.

Known gaps: no Linux client yet, Windows login screen/UAC not controllable

yet, Windows build not code-signed (SmartScreen warning).

Apache-2.0: https://github.com/pnatale/remoteferry

Site: https://remoteferry.com

Feedback welcome, especially on the deploy and the security model.