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.xaddress into RustDesk and connect.
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:
| Tool | Cost and licence | What you install |
|---|---|---|
| RustDesk | Free and open source (AGPL-3.0). No licence key or subscription, for personal or business use. | The RustDesk app on each computer |
| Windows Remote Desktop | Free. 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 |
| VNC | A 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.
- Your computers can't be reached from outside. Home routers, and the carrier-grade NAT many ISPs and mobile networks now use, drop connections that start from the internet. Port forwarding works only if your ISP gives you a public IP address, and it exposes the remote desktop port to everyone who scans for it.
- Using RustDesk's public servers now means signing in. By default, RustDesk connects by a 9-digit ID: both computers register with RustDesk's public ID server, which introduces them, and a public relay carries the session if they can't connect directly. Because of ongoing scam and botnet abuse, RustDesk's public servers now require the person connecting to sign in. Direct IP access, below, is a separate way to connect and doesn't use those servers.
- Running your own RustDesk server is a project. RustDesk's self-hosted server needs a machine with a public address, several TCP and UDP ports (21115–21119) opened to the internet, and its public key copied into every client.
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.
What you need
- A HostAnywhere account, with the HostAnywhere app installed and signed in on the computer you'll connect from and on each computer you want to control.
- RustDesk on both computers (or, for the alternatives, Remote Desktop or a VNC server on the computer you want to control).
- The computer you're controlling switched on, awake and online. Set it not to sleep, or to wake for network access.
| Computer you want to control | Good options | Watch out for |
|---|---|---|
| Windows | RustDesk, Remote Desktop | Hosting Remote Desktop needs Windows Pro or higher |
| Mac | RustDesk, Screen Sharing (VNC) | Privacy permissions must be allowed |
| Linux desktop | RustDesk, xrdp | RustDesk's Wayland support is experimental |
| Linux server with no monitor | xrdp | Needs a desktop environment installed |
| iPhone or iPad | Can control other computers | Can'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:
- 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.
- 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.
- 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.

On a Mac
macOS asks for two permissions the first time RustDesk starts. Allow both in System Settings → Privacy & Security:
- Screen & System Audio Recording, so RustDesk can send the screen. Without it you'll see a black screen.
- Accessibility, so RustDesk can move the mouse and type. Without it you can watch but not control.
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.

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.

Make the session comfortable
- Fit the screen to your window. In the session toolbar, open the display menu (the monitor icon) and choose Scale adaptive. Original shows the remote screen at full size, so a large Retina display spills off the edges.
- Copy and paste. Text you copy on one side is available on the other. When you control a Mac from Windows, paste into the Mac with Ctrl+V, the shortcut your own keyboard uses, not Cmd+V.
- Move files. Use the file transfer button in the session toolbar to send files in either direction.
- Talk to someone at the other computer. Start a FaceTime, Meet or Zoom call on the remote computer through RustDesk and join it from the computer you're on. The people at home hear you through the remote computer's speakers.
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:
| Priority | Action | Direction | Source | Destination | Port / protocol |
|---|---|---|---|---|---|
| 1 | allow | in | your laptop (or a tag such as admin) | the computer running RustDesk | 21118 / TCP |
| 2 | deny | in | All devices | the computer running RustDesk | 21118 / 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.
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.
- 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.
- They install HostAnywhere and RustDesk and sign in from the invite. Their computer appears in your device list with its own
100.64.x.xaddress. - 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.
- You connect to their
100.64.x.xaddress, 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.
- Mac: macOS has a VNC server built in. Turn on System Settings → General → Sharing → Screen Sharing, click the ⓘ button next to it, and turn on VNC viewers may control screen with password so viewers on Windows and Linux can sign in. Choose a password just for this, not your Mac account password: this is an older sign-in method, and Apple notes that third-party VNC viewers may not encrypt what you type.
- Linux and Windows: you'd need to install a VNC server first, such as TigerVNC or x11vnc on Linux, or RealVNC Server. For these computers, RustDesk or Remote Desktop (below) is usually less work.

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.
- Windows: turn on Settings → System → Remote Desktop, and keep Require devices to use Network Level Authentication on. Use an account with a strong password. Hosting Remote Desktop needs Windows Pro, Enterprise or Education; Windows Home can connect out but can't be controlled this way, so use RustDesk for Home PCs.
- Linux: install
xrdpand a desktop if the computer doesn't have one. On Ubuntu or Debian with XFCE:sudo apt install xrdp xfce4, thenecho xfce4-session > ~/.xsessionandsudo systemctl restart xrdp. xrdp starts its own desktop session for you rather than showing the physical screen, which also makes it a good fit for a server with no monitor.
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.



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 see | What to check |
|---|---|
| Connection refused or timeout | Is 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 in | You 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 Mac | Allow RustDesk under Screen & System Audio Recording, then reconnect. |
| You can see but not control a Mac | Allow 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 screen | The computer is using Wayland. Switch to an Xorg session. |
| It worked yesterday and is blocked today | Check your access rules (the rule's source must be the device you're connecting from) and RustDesk's IP whitelist. |
| Password rejected | Make sure you're using the permanent password and that RustDesk is set to accept it. |
| Remote Desktop won't connect | Remote 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 screen | Install 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.