Skip to content
Servey logoServey

How to set up a headless Mac mini that stays reachable

By Janesh Kapoor · · Updated · 7 min read

A Mac mini with no monitor is one of the best small always-on machines you can buy. The trap is that macOS was never designed to run without a person sitting in front of it, and the ways it fails are all discovered after you have already put the machine on a shelf. Here is the order to do things in - and how to end up with the mini in your pocket, which is what we built Servey for.

Frequently asked questions

How do I set up a Mac mini with no monitor?
Do everything while the monitor is still attached. Turn on both Screen Sharing and Remote Login in System Settings under General then Sharing, disable sleep with sudo pmset -a sleep 0 disksleep 0, enable automatic restart after a power failure with sudo pmset -a autorestart 1, decide what you are doing about FileVault, and fit a dummy HDMI plug so macOS reports a sensible resolution. Test your connection from another device before you unplug anything.
Why does my headless Mac mini stop responding after a while?
It is almost certainly going to sleep, and a sleeping Mac answers neither screen sharing nor SSH. Run sudo pmset -a sleep 0 disksleep 0 displaysleep 0 to stop it, and pmset -g to confirm the settings took. On Apple silicon a Mac mini idles at only a few watts, so leaving it permanently awake costs very little.
Why is the resolution wrong on a Mac with no display?
With nothing plugged into the video output, macOS has no display to describe and falls back to a default that is often small and the wrong shape. The reliable fix is a dummy HDMI plug, an inexpensive adapter that pretends to be a monitor so macOS offers real resolutions. Some remote clients can also negotiate a resolution themselves. Apple silicon Macs handle this better than Intel ones did, but the dummy plug is the answer that always works.
Should I turn off FileVault on a headless Mac?
It is a real trade-off rather than a setting with one correct answer. With FileVault on, a Mac that reboots stops at the unlock screen and stays off the network until somebody types the password, so it will not come back on its own after a power cut. With it off, and automatic login enabled, the machine returns unattended. For a build box with nothing sensitive on it, turning it off is reasonable; for a machine holding real data, keep FileVault on and accept the manual restart.
How do I access a headless Mac mini from outside my network?
Not by forwarding ports - exposing VNC or SSH directly to the internet gets them found by automated scanners within hours, and it does not work at all behind carrier-grade NAT. If the device in your hand is an iPhone or iPad, Servey is the direct answer: it does the NAT traversal for you, needs nothing open on your router, and puts a real terminal next to the screen, which is what most headless work actually is. The alternative is a mesh VPN such as Tailscale - free for personal use and a sound solution to CGNAT - at the cost of running one more service on every device you own.
Do I need both Screen Sharing and Remote Login turned on?
You want both, because they fail independently and each rescues the other. Screen Sharing gives you the graphical desktop over VNC. Remote Login gives you SSH, which keeps working when the window server is confused or the machine is under heavy load, and is far quicker when you only need to run one command. They are separate services, so switching on one does not switch on the other.

Servey puts your Mac in your pocket. Launching soon.