brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: scutil shows the proxy settings your Mac applies right now

macOS
~/tips/tip-macos-scutil-proxy

scutil --proxy

See the active system proxy configuration when some apps cannot reach the internet.

When Safari works and a command-line tool doesn’t, or the other way round, a proxy setting is one of the usual suspects. macOS can print the proxy configuration it actually applies.

The option is --proxy, and it needs no sudo:

scutil --proxy

The man page says it reports the current system proxy configuration. On a Mac without a proxy you see little more than an exceptions list, typically *.local and 169.254/16. If a proxy is set you’ll see keys like HTTPEnable, HTTPProxy and HTTPPort, or ProxyAutoConfigEnable with a URL when a PAC file decides.

That last one is worth spotting. Company networks and some security apps push a PAC file, and then traffic goes through a proxy that you never typed in anywhere.

Why check here and not in System Settings? This is the merged result, including settings that came from a configuration profile or a VPN, so I trust it more than one tab in one network service.

Keep in mind that not every program asks the system. Many command-line tools such as curl ignore this configuration and look at environment variables like https_proxy instead. So if scutil --proxy is clean and a terminal tool still uses a proxy, run env | grep -i proxy.

Further reading: scutil.8 man page

More macOS tips System Settings > Accessibility > Hover Text > When using the pointer A Smart Folder in Notes collects notes by tag, checklist or date Type # in a Mac note to tag it, then filter by tag in the sidebar tmutil isexcluded ~/Projects/app/node_modules Crop an image in Preview by dragging a frame and clicking Crop All macOS tips (99) All topics

Link