No port forwarding
Remote access to your Mac, without port forwarding.
Your router turns away incoming connections by design, and opening a port is the risky way around that. Here is why, and three ways to reach a Mac at home that leave the router alone.
Updated · macOS 15 or later · Windows 10 or 11 · Linux with Xorg · iOS 18 or iPadOS 18 or later · Android 10 or later

Why a Mac at home can't be reached from outside
Your internet provider gives your home one public address. Your router holds it and hands out private addresses to everything inside: the Mac, your phone, the TV. This is called NAT, short for network address translation.
When your Mac asks for a web page, the router notes who asked and passes the reply back. A connection that starts from outside has no such note. The router doesn't know which device it is for, so it drops it.
Think of an apartment building with one street address and no names on the letterboxes. Replies to letters you sent find their way back to you. A letter from a stranger gets no further than the lobby.
That is good for safety and bad for remote desktop, where you are the stranger.
Why port forwarding is risky, and sometimes impossible
Port forwarding is a standing instruction to the router: send anything that arrives on this port to that device. For Mac Screen Sharing, the port is 5900.
- It is open to everyone. The rule can't tell you from anyone else, so the Mac's login is reachable from the whole internet, with only a password in the way.
- It needs your home's public address. Many providers change that address from time to time, so you need a way to keep track of it.
- It needs access to the router. At an office, in student housing or on a shared network, you often don't have it.
- Sometimes it can't work at all. Mobile carriers and some ISPs use carrier-grade NAT, where many customers share one public address. There is no port of your own to forward.
The alternatives to port forwarding
| Approach | How it gets through the router | What you set up | Trade-off |
|---|---|---|---|
| Port forwarding | Opens an inbound port | A router rule, and a way to find your home address | Exposes the Mac. Not possible behind carrier-grade NAT |
| VPN | Your device joins the home network through an encrypted tunnel | A VPN at home and a client on each device | More to set up and keep running |
| Relay service | Both ends connect outward to the service, which passes everything between them | An app and an account | Every frame takes the longer route through the service |
| Peer to peer, relay as fallback | Both ends connect outward, are introduced, then talk directly | An app and an account | Uses the relay on networks that block a direct path |
A VPN is a good answer if you want your whole home network: a file server, a printer, SSH. If you only want your Mac's screen, it is more than you need.
How two devices connect without an open port
Routers allow replies to traffic that started inside. So both devices start.
- The Mac and the device in your hands each open an outward connection to a server and say who they are.
- The server tells each one the public address the other is coming from.
- Both send to each other at the same moment. Each router sees traffic going out, and treats what comes back as the reply.
- If that works, the two talk directly, peer to peer.
- If a network blocks it, the stream goes through a relay instead.
Nothing on the router is changed, and no port is left open afterwards. This is how WebRTC connects, the same technology browsers use for video calls.
What Anywhere does
Anywhere connects this way. You sign in once on each device with an email address or Google, and every device in the account sees the others. There are no IP addresses, no port forwarding, no VPN and no router settings.
The video is peer to peer when the two networks allow a direct path. Otherwise an encrypted relay carries it. Either way the video, your input and any files are encrypted end to end between your devices, so the relay cannot decrypt them. Each device also signs the connection handshake with a key in its Secure Enclave, so a server in the middle cannot swap in another device. How Anywhere protects your Mac.
Anywhere is not the only app that avoids port forwarding. Jump Desktop, TeamViewer, AnyDesk, Chrome Remote Desktop and Parsec don't need it either. Apple's Screen Sharing does need it from outside, unless you use a VPN, and Screens 5 reaches a Mac by opening a router port automatically or through manual port forwarding. Remote desktop apps for Mac compared.
How to reach your Mac without port forwarding
- 1
Leave the router alone
If you forwarded port 5900 in the past, remove the rule. You won't need it.
- 2
Install Anywhere on the Mac at home
It is free to try for 14 days ($12 a month after that) and needs macOS 15 or later. Sign in, then allow Screen Recording and Accessibility when macOS asks.
- 3
Keep the Mac awake
Set Keep Active to On power so the Mac doesn't sleep while you are out. More on keeping a Mac awake.
- 4
Sign in on the Mac you take with you
Install Anywhere there and use the same account.
- 5
Choose the Mac under Connect To
Its screen opens in a window. Mac to Mac works today. The iPhone and iPad app is not yet on the App Store.
Good to know
Is there an alternative to port forwarding?
Yes, three. A VPN into your home network, a remote access service that relays the connection through its servers, or an app that connects two devices peer to peer by having both connect outward. None of them needs a port opened on your router.
Does Mac Screen Sharing need port forwarding?
On the same network, no. From outside, it needs port 5900 forwarded, a VPN, or an Apple Account screen-share request that someone at the Mac accepts.
What is carrier-grade NAT?
It is NAT run by the internet provider, so many customers share one public address. Mobile carriers and some home ISPs use it, and it makes port forwarding impossible.
Do I need a static IP address?
Not with Anywhere. Your devices find each other through your account, so there is no IP address to look up or type.
Can the relay see my screen?
No. With Anywhere, video, input and files are encrypted end to end between your devices, and the relay cannot decrypt them.
Sources
Prices and features of other products were read from these pages on November 21, 2026 and may have changed since.
Take your Mac with you.
See and control your Mac from your phone, tablet or another computer. Install it on your Mac, Windows PC or Linux PC, sign in, and it's there whenever you need it.