Turn on the firewall and stealth mode — via Apple Support
The macOS firewall blocks unwanted incoming connections, but it isn't always switched on. Stealth mode goes further and makes your Mac ignore pings and probes from other devices, so it's harder to find on public Wi-Fi.
Takes effect right away
How to do it
- Open System Settings > Network > Firewall and turn it on.
- Click Options and turn on Enable stealth mode.
- For the strictest setup on untrusted networks, also turn on Block all incoming connections. It blocks incoming connections to non-essential services and apps, including sharing services such as file or screen sharing.
With the normal firewall settings, services you've turned on in Sharing settings can still accept connections through it. Block all incoming connections is stricter: it also blocks those non-essential sharing services. For extra safety, turn off Sharing services you don't need.
Sources
- Change Firewall settings on Mac — by Apple Support
- Source reviewed
- 2026-11-02
- Link checked
- 2026-11-02
- Tested hands-on
- Not by Oddbyte.Me
Oddbyte.Me hasn't tried this on every macOS version, so keep the undo handy.