Open your Mac's localhost on your iPhone
The dev server runs on your Mac at localhost:5173. You want to see the page on a real phone — on the sofa, or across town — without opening it to the internet.
The usual ways, and their catches
- The Mac's LAN address. Start the server bound to all interfaces (Vite's
--host, for example) and openhttp://192.168.x.x:5173in Safari on the same Wi-Fi. Free and simple — but only on that network, the server is now reachable by everyone on it, and some dev servers reject a host name they do not expect. - A public tunnel service. It gives you a URL that works anywhere — and works for anyone who has it, through somebody else's servers.
- A VPN such as Tailscale. Private and solid, if you are happy to run it on both devices and bind the server beyond localhost.
If one of these already fits, keep it. ShiftStage takes a different route: the page travels inside the same end-to-end encrypted connection the app already has with your Mac.
How it works in ShiftStage
The Local servers screen, under the Mac's Machine section, lists the ports
your Mac listens on with the names of their processes; those that answer HTTP come first, and
an Other port field covers the rest. Tap a port and the page opens in the
app's own browser at http://mac.localhost:5173 — the same port number as on the
Mac.
- The server stays on localhost. Nothing has to listen on the network; the
agent connects to
127.0.0.1on the Mac and moves bytes, without parsing them. - Hot reload works. WebSocket connections go through like any other, so the page updates when you save a file.
- Links from the terminal open there too. A
http://localhost:5173/aboutprinted in a terminal session or by an AI agent opens the same page, served from the Mac. - Nothing stays behind. The browser's storage lives in memory and is dropped when you switch Macs or restart the app; cookies of your dev server do not land on the phone's disk.
A .localhost name keeps the page a secure context, and Vite, webpack-dev-server
and Next.js accept it without configuration. A page that loads resources by an absolute
http://localhost:PORT address may still miss them.
Turned on at the Mac
Open local servers on a device is a switch in the agent's settings on the Mac, off by default. Until it is on, the screen says so and where to change it. The agent's own ports are never opened, the phone sees only ports on the Mac's loopback, and each opening is recorded in the access log on the Mac with the port and the process name. Turning the switch off stops new connections; a page already open lives until you close it.
On the same Wi-Fi, or anywhere
On your own network it is free, like the rest of the app. From anywhere else it goes over the same path as the terminal — peer to peer or through the relay — which is what the subscription opens.
If the server is not running, the screen says nobody is listening on that port; start it from the phone as a service — see restarting your dev server from your iPhone — or find what holds the port with the process list.
Set it up once
- Install the agent on the Mac. A signed, notarised app from our open
Homebrew tap. It shares only the folders you name.
brew install --cask shiftstage/shiftstage/shiftstage-agent - Install the app on the iPhone from the App Store.
- Pair them. Scan the code on the Mac's screen and confirm the same symbols on both devices. No account. The first pairing needs both on the same network.
That is the whole setup: no VPN, no port forwarding, no SSH keys. On the same Wi-Fi the phone talks to the Mac directly; away from home the connection goes peer to peer, or through a relay that forwards only end-to-end encrypted bytes.
Get it
The Mac agent: download page — one Homebrew command or a notarised disk image. The iPhone app: App Store. Free forever for one Mac on your own network, no account; $7.99 a month or $69.99 a year to reach it from anywhere.
More guides: all guides.