Kill a process on your Mac from your iPhone
A dev server that outlived its tab still holds port 3000. A test run will not end. Something has been eating a core since lunch on a Mac nobody is sitting at.
The classic way still works
If Remote Login is on and you can reach the Mac, any SSH app gives you a shell, and
lsof -nP -iTCP:3000 -sTCP:LISTEN followed by kill is all it takes.
ShiftStage's own terminal is a real shell on the Mac too, so the same commands work there
without SSH. Activity Monitor, of course, only works at the Mac.
What a phone adds is not having to remember the flags: a list you can sort, a search box, and two buttons that do what they say.
Find it
- Processes lists what runs on the Mac with PID, name, command, CPU, memory and uptime, refreshed every two seconds while the screen is open — and only then. Sort by CPU or memory, or search by name or command.
- Local servers answers "what is using this port": every listening TCP port of your user, with the name of the process that holds it. Ports that answer HTTP come first.
- Other users' and system processes can be shown too. Their CPU and memory appear as a dash, not zero, because macOS does not hand those numbers to a normal user — and the agent does not run as root to get them.
End it, or kill it
Swipe the row or press and hold it. There are two actions, on purpose:
- End asks the process to quit, so it can save its state and clean up.
- Kill stops it at once, without that chance.
Both ask for confirmation — a stray tap in a list should not end anything. Only your own user's processes can be ended; for others there are no buttons, and the agent would refuse anyway.
The Mac decides first
Ending processes is off when you install the agent. The Mac's owner turns on Terminate processes in the agent's Security settings, on the Mac itself; the phone cannot switch it on. Until then you can look at everything, and the app tells you where the switch is instead of showing a bare "permission denied". Every operation a device asks for is recorded in the access log on the Mac.
If it keeps coming back
Killing a dev server every afternoon is a sign it should be a service instead: started, stopped and restarted with one tap, with its logs on the phone and a notification when it dies. That is restarting your dev server from your iPhone. And if you just want to see the page it serves, open its localhost on your phone.
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.