Connection
Connect to your Mac from anywhere
How Doorway reaches your Mac from any network: local TLS and internet WebRTC race, peer-to-peer or encrypted relay, cellular and CGNAT, no VPN or port forwarding.
Doorway connects to your Mac from any network with no setup: no port forwarding, no VPN, no Tailscale, no router changes. Your iPhone tries the local network and the internet at the same time, and whichever works first wins. Away from home it uses WebRTC with DTLS encryption, peer to peer when possible, otherwise through an encrypted relay.
How does Doorway pick a route?
When you tap Connect, two attempts race:
| Route | How it finds the Mac | Encryption | Head start |
|---|---|---|---|
| Local network | Bonjour + TCP | TLS 1.2, random 256-bit key | 600 ms |
| Internet | Doorway signaling service, then WebRTC | DTLS, fingerprints signed with a key from the pairing QR | None |
The local route gets a 600 ms head start, so at home you normally connect directly over Wi-Fi. Away from home, the internet route wins. You don't choose; it happens on its own. If the connection drops, the app reconnects automatically. When you switch to another app and come back, the session stays open and, if iOS cut the connection, reopens in place. To use the list of Macs without ending it, tap the house button in Options: the session stays under Active session until you tap Return or End session. The status shows latency.
What happens on the internet route?
- A Doorway signaling service on Cloudflare Workers introduces the two devices.
- They exchange short WebRTC setup messages. Each side checks that the other's DTLS fingerprint is signed with the key derived from your pairing QR, so only paired devices can join.
- The devices connect peer to peer when the networks allow it.
- If not, traffic goes through Cloudflare's TURN relay, which only carries encrypted packets.
Screen video, input, files and the pairing key never reach Doorway's servers. See Security.
Does it work on cellular, CGNAT and corporate networks?
Yes, Doorway works on cellular, CGNAT and corporate networks. Cellular data, carrier-grade NAT, hotel Wi-Fi and corporate networks often block direct connections. In those cases Doorway uses the TURN relay, so it still connects.
Do I need to open a port on my router?
No, you don't need to open a port: the Mac opens no inbound port on your router. It also rejects direct TCP connections from public addresses. From outside your network you always come in through the signed, encrypted WebRTC path.
Why does my Mac say "same network only"?
The pairing was probably made with an early beta version, which only works on the local network. Scan the QR code again. See Troubleshooting.
What does the Mac need to stay reachable?
| Condition | Why |
|---|---|
| Doorway running | With Always available on, it opens at login and lives in the menu bar |
| Mac awake | Doorway can't wake a sleeping Mac |
| Internet connection | For the internet route |
| A user logged in | After a restart with FileVault, someone must log in first |
How much data does a remote session use?
Bitrate adapts to the network and starts at 4 Mbps over the internet. On cellular, a lower profile saves data. See Image quality.
How is this different from Apple's Screen Sharing?
Apple's Screen Sharing works Mac to Mac and, outside your network, typically needs a VPN or port forwarding. Doorway handles the route for you, from an iPhone, an iPad or, since Doorway 1.3, another Mac: the same local-or-internet race, encryption and relay apply when a Mac is the controller. See Doorway vs Apple Screen Sharing and Access your Mac from anywhere.
Updated