← All posts

Free TeamViewer Alternative: Connect to Your Computers Remotely with RustDesk and HostAnywhere

You want to sit at your laptop and use the Mac at home, the Linux box in the closet or the Windows PC at the office as if you were in front of it. The usual options all have a catch: open a port on your router and hope nobody scans it, pay for a remote-support subscription such as TeamViewer, or route every session through someone else's servers.

This guide shows a free alternative to TeamViewer that avoids all three. RustDesk, a free, open-source remote desktop app, connects straight to each computer's private HostAnywhere address. No router ports are opened, RustDesk's public ID and relay servers aren't involved, and it works across home Wi-Fi, mobile hotspots and carrier-grade NAT. We'll cover Windows, macOS and Linux, and show how to use VNC or Windows Remote Desktop the same way if you prefer them.

The short version: install HostAnywhere on each computer so they share a private network. In RustDesk on the computer you want to control, turn on Enable direct IP access and set a permanent password. Then, from any other device, type that computer's 100.64.x.x address into RustDesk and connect.

Prefer to watch? A 4-minute walkthrough: RustDesk from Windows to a Mac, plus Remote Desktop, xrdp on Linux and VNC, all over HostAnywhere.

A free alternative to TeamViewer

TeamViewer made remote access over the internet easy, but its free version is licensed for personal use only. TeamViewer says that when free usage looks commercial, its commercial-use detection can limit or interrupt sessions. Your access to your own computers ends up depending on how a vendor classifies your activity.

The tools in this guide don't work that way. None of them depends on a vendor's service to check your licence before you connect:

ToolCost and licenceWhat you install
RustDeskFree and open source (AGPL-3.0). No licence key or subscription, for personal or business use.The RustDesk app on each computer
Windows Remote DesktopFree. Built into Windows Pro, Enterprise and Education, and Microsoft's Windows App client is free on Mac, iPhone, Android and Windows.Nothing on Windows; xrdp on Linux
VNCA Mac's Screen Sharing is a built-in, free VNC server, and open-source viewers such as TigerVNC are free. RealVNC offers a free plan for non-commercial use with its own server; connecting RealVNC Viewer to other VNC servers, such as a Mac's Screen Sharing, needs a paid plan.A VNC viewer on the computer you connect from

What none of them provides on its own is a way to reach your computers across the internet without opening ports to the public internet. That's the part HostAnywhere adds: a private network where every computer has a fixed address you can connect to from anywhere. HostAnywhere's Free plan covers up to 10 devices, including access rules, so the whole setup in this guide costs nothing for a typical home.

Why remote desktop over the internet is awkward

Remote desktop on the same Wi-Fi is easy. Across the internet it gets hard, for three reasons.

RustDesk has another way to connect that skips all of this: direct IP access. The computer you want to control listens on TCP port 21118, and you connect to its IP address. The catch is that you need an IP address you can reach, and that's what HostAnywhere gives you.

RustDesk ID connection compared with a direct IP connection over HostAnywhereOn the left, both computers register with RustDesk's public ID server, which introduces them; if NAT blocks a direct link the session goes through RustDesk's public relay. On the right, the laptop connects straight to the Mac's private 100.64 address on TCP 21118, inside HostAnywhere's WireGuard network, with no RustDesk server involved.Connecting by RustDesk IDConnecting by IP over HostAnywhereID serverRustDesk publicRelayRustDesk publicLaptopWindowsMacat homeintroduces the twosession relayed if NAT blocksneeds a sign-in on recent buildsLaptopWindows100.64.13.2Macat home100.64.13.3WireGuardTCP 21118no RustDesk server in the sessionno router ports openedno RustDesk sign-in required
Diagram 1. Connecting by RustDesk ID uses RustDesk's public ID server and, when NAT gets in the way, its public relay. Connecting by IP over HostAnywhere goes straight to the computer's private address.

What you need

Computer you want to controlGood optionsWatch out for
WindowsRustDesk, Remote DesktopHosting Remote Desktop needs Windows Pro or higher
MacRustDesk, Screen Sharing (VNC)Privacy permissions must be allowed
Linux desktopRustDesk, xrdpRustDesk's Wayland support is experimental
Linux server with no monitorxrdpNeeds a desktop environment installed
iPhone or iPadCan control other computersCan't be controlled remotely

Step 1: put your computers on one private network

Install HostAnywhere on every computer you want to reach and on the one you'll control them from, and sign in with the same account. Each device gets a private address in the 100.64.x.x range that stays the same wherever the device goes, and the devices can reach each other at those addresses.

HostAnywhere connects devices directly with WireGuard whenever the networks allow it, including through most home routers and carrier-grade NAT, and falls back to a relay when they don't. Nothing is opened on your router. If you want the details, how HostAnywhere works walks through NAT traversal step by step.

To find a device's address, open the HostAnywhere menu in the menu bar (Mac) or system tray (Windows), which shows Mesh: 100.64.x.x, or look at the device list in the dashboard.

Step 2: set up RustDesk on the computer you want to control

Download RustDesk from rustdesk.com or its GitHub releases page, and nowhere else: fake RustDesk download sites have been used to spread malware. Install it on every computer, including the one you'll connect from.

Then, on each computer you want to control:

  1. Let it run in the background. RustDesk accepts connections through a background service, so the session still works when nobody is at the computer. If the main window shows Install or Start service, click it.
  2. Turn on direct IP access. Open Settings from the ⋮ menu next to your ID, go to Security, click Unlock security settings, and tick Enable direct IP access. Leave the port at 21118.
  3. Set a permanent password. In the same Security page, under Password, choose Use permanent password and set a long one. Without it RustDesk shows a one-time password on the remote screen, which you can't read when you're away.
RustDesk Settings on a Mac, Security section, with Enable direct IP access ticked and the port set to 21118
RustDesk on the Mac: Settings → Security → Enable direct IP access, port 21118.

On a Mac

macOS asks for two permissions the first time RustDesk starts. Allow both in System Settings → Privacy & Security:

Depending on your macOS version, RustDesk may also ask for Input Monitoring for keyboard input. Allow it if it does.

If the Security section is missing. On some recent builds, RustDesk's settings show the abuse notice and a sign-in prompt instead of the Security section. Direct IP access doesn't use RustDesk's servers, so you can turn it on in RustDesk's settings file instead. Quit RustDesk, open ~/Library/Preferences/com.carriez.RustDesk/RustDesk2.toml in a text editor, and add this line under [options]:

direct-server = 'Y'

Reopen RustDesk and set the permanent password in its settings window. If you can't reach that setting either, you can set it from Terminal as a fallback. Type the password when asked; it isn't shown or saved in your shell history, but it's passed to RustDesk as a command-line argument, so other processes on the Mac could briefly see it while the command runs:

read -s "pw?RustDesk password: "; echo
sudo /Applications/RustDesk.app/Contents/MacOS/RustDesk --password "$pw"; unset pw

On Windows

Run the installer rather than the portable version, so RustDesk installs its background service and keeps accepting connections after you sign out or restart. Before you rely on it, restart the PC once and check you can still connect.

On Linux

RustDesk's Wayland support is still experimental. On Wayland, screen capture goes through the desktop's screen-sharing portal, which can ask someone at the computer to approve each session, and RustDesk can't show the login screen. For reliable unattended access, especially after a reboot or sign-out, choose the Xorg session (often "Ubuntu on Xorg" or "GNOME on Xorg") from the gear icon on the login screen. RustDesk's Linux notes have the current details.

RustDesk shows what's on the computer's screen, so a Linux server with no monitor attached may report "No displays". For a server like that, Remote Desktop with xrdp is the simpler option: it creates a desktop session on demand.

Step 3: connect

On the computer you're connecting from, open RustDesk, type the other computer's HostAnywhere address, such as 100.64.13.3, into the Control Remote Desktop box, and click Connect. Enter the permanent password and the remote desktop appears.

RustDesk on Windows with the address 100.64.13.3 typed into Control Remote Desktop, and recent sessions to a Mac, a Windows PC and a Linux server listed by their 100.64 addresses
RustDesk on a Windows laptop: type the HostAnywhere address and click Connect. Recent sessions to the Mac (100.64.13.3), a Windows PC (100.64.13.2) and the Linux server (100.64.13.4) are listed by address.

The same works in every direction: Windows to Mac, Mac to Linux, Windows to Windows, Linux to Windows. Which computer is which doesn't matter, as long as both run HostAnywhere and the one you're controlling has direct IP access on.

A RustDesk session from a Windows laptop showing the Mac desktop with Chrome open
A Windows laptop controlling the Mac over RustDesk. The red shield in the tab is RustDesk's "direct and unencrypted" indicator, explained below.

Make the session comfortable

RustDesk also has text chat, a built-in voice call, session recording and a button to restart the remote computer, all in the session toolbar. That covers most of what people use TeamViewer for day to day.

About the "Direct and unencrypted connection" notice

When you connect by IP, RustDesk shows Direct and unencrypted connection. That's accurate from RustDesk's point of view: in direct IP mode RustDesk doesn't add its own encryption to the session.

The session still doesn't cross the internet in the clear: it travels between the two computers' HostAnywhere addresses, and HostAnywhere carries that traffic inside WireGuard. When the two computers have a direct connection, which is the usual case, WireGuard encrypts the session from one computer to the other and it never touches HostAnywhere's servers.

One thing HostAnywhere doesn't change: RustDesk listens on port 21118 on every network the computer is connected to, not just HostAnywhere. Behind a home router, that port isn't reachable from the internet, but other devices on the same local network can reach it, and so could strangers on a café or hotel Wi-Fi if the computer is a laptop. The two settings below close that gap.

Never forward RustDesk, Remote Desktop or VNC ports on your router. Reach them only over your private network, from devices you trust, with a strong password that you don't use anywhere else.

Lock it down: only your laptop can connect

By default, every device on your HostAnywhere network can reach every other device. If family members, a media server or a work machine share the network, any of them could reach RustDesk's port and try the password.

HostAnywhere access rules fix that. In the dashboard, open Access Control and add two rules:

PriorityActionDirectionSourceDestinationPort / protocol
1allowinyour laptop (or a tag such as admin)the computer running RustDesk21118 / TCP
2denyinAll devicesthe computer running RustDesk21118 / TCP

Rules are checked in priority order and the first match wins, so the allow must sit above the deny. If you'd rather lock the whole network down, switch its default policy to deny and add only the allow rule. Each computer enforces the rules with its own firewall (pf on macOS, Windows Defender Firewall, iptables on Linux), so other devices can't even open a connection to the port.

An access rule that lets only one laptop reach RustDeskA HostAnywhere access rule allows the laptop to reach the Mac on TCP 21118. Other devices on the same network, such as a tablet and a media server, are denied, and the Mac enforces the rule with its own firewall.Mac running RustDesk100.64.13.3listens on TCP 21118Your laptoptag: adminKid's tabletfamily deviceMedia servershared boxallow · TCP 21118everything else: deniedenforced by the Mac’s own firewall
Diagram 2. One allow rule for your laptop and a deny for everyone else. Other devices on your HostAnywhere network can't open a connection to RustDesk.

HostAnywhere rules apply to traffic on your HostAnywhere network. To also cover the local network, use RustDesk's own allowlist: in Settings → Security, tick Use IP whitelisting and add your laptop's 100.64.x.x address. RustDesk then refuses connections from any other address, on any network. Using both means a mistake in one still leaves the other in place.

Help a family member or colleague

RustDesk's 9-digit IDs are the usual way to support someone else, but they go through RustDesk's public servers, which now ask you to sign in. You can support someone the same way you reach your own computers instead: put their computer on your HostAnywhere network.

  1. Invite them. In the dashboard, open Users and click Invite User. Send the invite by email or copy the one-time link. The Free plan includes 3 users.
  2. They install HostAnywhere and RustDesk and sign in from the invite. Their computer appears in your device list with its own 100.64.x.x address.
  3. They turn on direct IP access in RustDesk, as in Step 2. For a one-off session they can skip the permanent password and read you the one-time password instead.
  4. You connect to their 100.64.x.x address, just like your own computers.

Joining your network also lets their devices reach yours. If that's more than you want, add access rules: allow your laptop to reach their computer on TCP 21118, and deny their devices access to your other machines. When you no longer need to help, remove them under Users; their devices leave your network immediately. A HostAnywhere account belongs to one network at a time, so this works best for people who don't already use HostAnywhere with someone else.

Prefer VNC? It works the same way

If you already use a VNC viewer, point it at the computer's 100.64.x.x address instead of a public IP. VNC servers listen on TCP port 5900, so use that port in the access rules above.

RealVNC Viewer on Windows connected to a Mac at 100.64.13.3:5900, with the connection info panel open
RealVNC Viewer on Windows connected to the Mac's built-in Screen Sharing at 100.64.13.3:5900. RealVNC Viewer needs a paid RealVNC plan to connect to a non-RealVNC server like this; a free viewer such as TigerVNC works the same way.

Access rules cover your HostAnywhere network only. They don't block connections that reach a computer through its other networks, such as your home Wi-Fi. RustDesk has its IP whitelist for that; VNC and Remote Desktop don't, so use the computer's own firewall to allow only trusted addresses on ports 5900 and 3389, and never forward those ports on your router.

Windows Remote Desktop works too

Remote Desktop (RDP) is built into Windows, and Microsoft's Windows App (formerly Microsoft Remote Desktop) connects to it from a Mac, iPhone or another PC. Over HostAnywhere, you save each computer by its 100.64.x.x address instead of setting up an RD Gateway or opening port 3389 on your router.

In Windows App, click + → Add PC, enter the computer's HostAnywhere address as the PC name, and sign in with that computer's own username and password. For access rules, Remote Desktop uses TCP port 3389, plus UDP 3389 if you allow it, which usually makes sessions smoother.

Windows App on a Mac with three saved PC connections: a Windows PC, a Linux server and a Windows cloud PC
Windows App on the Mac with a Windows PC, a Linux server and a cloud PC saved by their HostAnywhere addresses.
Remote Desktop session from a Mac to a Windows PC; the connection information panel shows remote PC 100.64.13.2, TCP, 27 ms round-trip time and no gateway
Mac to Windows over RDP. The connection info shows the PC at its HostAnywhere address (100.64.13.2), a 27 ms round trip, and no RD Gateway.
Remote Desktop session from a Mac to a Linux server running the XFCE desktop through xrdp, remote PC 100.64.13.4
Mac to the Linux server (100.64.13.4) over RDP: an XFCE desktop served by xrdp.

RustDesk or VNC: why one feels faster

In our own setup, a MacBook Pro with a 3024×1964 Retina display controlled from a Windows laptop over a direct HostAnywhere connection, the difference was easy to see. With RealVNC Viewer connected to the Mac's built-in Screen Sharing, scrolling a long web page lagged badly. With RustDesk, over the same connection, it was smooth. That's one setup, not a benchmark, and VNC products vary a lot in how they compress the screen.

The likely reason is how they send the screen. VNC typically sends the parts of the screen that changed as compressed images, and on a Retina display one scroll changes millions of pixels. RustDesk encodes the screen as video, with codecs such as VP9, AV1 or H.264, and uses the computer's hardware video encoder where it can. Video codecs are built for exactly this kind of change from frame to frame.

If you stay with VNC, lowering the viewer's picture quality and choosing a "Larger Text" display resolution on the Mac while you're connected both help a lot.

Troubleshooting

What you seeWhat to check
Connection refused or timeoutIs RustDesk's service running on the remote computer, and is direct IP access on? Both computers should show as online in the HostAnywhere dashboard.
RustDesk asks you to sign inYou typed an ID, not an IP address, or direct IP access is off on the remote computer. Connect by 100.64.x.x address.
Black screen on a MacAllow RustDesk under Screen & System Audio Recording, then reconnect.
You can see but not control a MacAllow RustDesk under Accessibility. If it's already on, switch it off and on again.
Linux asks someone to approve, or shows nothing at the login screenThe computer is using Wayland. Switch to an Xorg session.
It worked yesterday and is blocked todayCheck your access rules (the rule's source must be the device you're connecting from) and RustDesk's IP whitelist.
Password rejectedMake sure you're using the permanent password and that RustDesk is set to accept it.
Remote Desktop won't connectRemote Desktop must be on, the PC must run Windows Pro or higher, and your access rules must allow TCP 3389.
xrdp shows a blank or black screenInstall a desktop environment and set it in ~/.xsession, then restart xrdp.

To check whether the port is reachable at all, run nc -vz 100.64.13.3 21118 on a Mac or Linux computer, or Test-NetConnection 100.64.13.3 -Port 21118 in PowerShell on Windows, using your own computer's address. A success means the network path and port are open; it doesn't test the password or the remote desktop itself.

FAQ

Do I need a RustDesk licence, account or server?

No. RustDesk is free, open-source software with no licence key. Connecting by IP doesn't use RustDesk's ID or relay servers, so you don't need to sign in or run your own server either.

Can this replace TeamViewer?

For reaching your own computers, yes. RustDesk or Windows Remote Desktop over HostAnywhere gives you unattended access to your Mac, Windows and Linux machines from anywhere, without a per-device subscription. To support family or colleagues, invite them to your network and connect to their computer the same way.

Do I need to open ports on my router?

No. HostAnywhere connects your devices without any port forwarding, so nothing on your router changes.

Does it work behind carrier-grade NAT or on a phone hotspot?

Yes. HostAnywhere connects directly through most NATs, including carrier-grade NAT, and uses a relay when two networks won't allow a direct connection.

Try it

Download HostAnywhere for each computer, sign in, and turn on direct IP access in RustDesk. It takes about ten minutes, and from then on every computer you own is one address away.

Solutions
Private Network Phone Backup Private AI Server AI Gateway Internet Gateway VPN Gateway Public URLs
More
Docs Blog Pricing Download