How to Set Up a Proxy on Mac (macOS Step-by-Step Guide)

Learn exactly how to configure a proxy server on your Mac—covering HTTP, HTTPS, SOCKS5, and PAC files. This guide provides step-by-step instructions for macOS Ventura, Monterey, Sonoma, and earlier; with tips for Safari, Chrome, and Firefox browsers. Enhance your privacy, secure your connection, bypass regional restrictions, or power up automation tools—no technical jargon required!

Person configuring proxy settings on MacBook in modern workspace

Preparation: What You Need for Mac Proxy Setup

Before you start, gather the following details from your proxy provider:

  • Proxy Server Address (Host) (e.g., 123.45.67.89 or proxy.example.com)
  • Port (e.g., 8080, 1080)
  • Protocol/Type (HTTP, HTTPS, SOCKS5, PAC file URL)
  • Username/Password (if required for authentication)
Tip: Trusted proxy providers will give you these details. Avoid using random free proxies, as they may monitor or leak your traffic. Learn about premium proxies.
Common Proxy Setup Terms
TermDefinition
HostProxy server address (IP or domain)
PortNetwork port number (e.g. 8080)
ProtocolType of proxy: HTTP, HTTPS, SOCKS5
User/PassCredentials for authenticated proxies
PACProxy Auto-Config file (URL to script)
Common mistake: Free, unverified proxies may leak or sell your data. Only use proxies from sources you trust.

Step-by-Step: Configure HTTP/HTTPS/SOCKS5 Proxy on macOS

1. System-Wide Proxy via System Preferences/Settings

  1. Open System Settings (Ventura/Sonoma) or System Preferences (Monterey/earlier).
  2. Go to Network → Select your active network (Wi-Fi or Ethernet) → Click Details or Advanced….
  3. Navigate to the Proxies tab/section.
  4. To set a manual proxy:
    • Tick the box for Web Proxy (HTTP), Secure Web Proxy (HTTPS), or SOCKS Proxy as needed.
    • Enter your proxy server address and port.
    • If required, tick Proxy server requires password and enter your credentials.
  5. To use a PAC file: Tick Automatic Proxy Configuration and enter the PAC file URL provided by your proxy provider.
  6. Click OK, then Apply to save changes.
  7. Test your proxy by visiting IP Lookup Tool or a site that shows your public IP.
Screenshot of System Settings > Network > Wi-Fi > Details > Proxies on macOS
Note: Always click Apply after editing proxy settings. Entering a PAC file requires the full URL (e.g., http://example.com/proxy.pac), not just a filename.

2. Safari Proxy Configuration Explained

Safari uses your Mac’s system proxy settings. No extra setup is needed.

  • After configuring the system proxy as above, restart Safari for changes to take effect.
  • If pages don’t load, clear your cache and check proxy credentials.
Pro tip: To disable the proxy for a specific site, add the domain to the Bypass proxy settings field in System Preferences.

3. Chrome Proxy Settings on Mac

Google Chrome (and most Chromium browsers) also use your Mac’s system proxy settings.

  • Follow the System Preferences instructions above.
  • Restart Chrome after making changes.
  • For advanced users: Use a Chrome extension to specify a different proxy per profile or tab. Note: Some extensions may override system proxy settings.
Warning: Extensions can bypass or interfere with your system proxy. Only use reputable proxy extensions and test your connection after changes.

4. Firefox Proxy Settings on Mac

  1. Open Firefox → Preferences (or Settings).
  2. Scroll to Network Settings at the bottom and click Settings…
  3. Choose one of:
    • No proxy (direct connection)
    • Use system proxy settings
    • Manual proxy configuration (HTTP, HTTPS, SOCKS5, etc.)
    • Automatic proxy configuration URL (enter PAC file URL)
  4. If using manual config, enter the proxy server, port, and (if needed) username/password.
  5. Click OK to apply settings.
  6. Test by visiting IP Lookup Tool.
Screenshot of Firefox > Preferences > Network Settings > Proxy dialog on macOS
Tip: Want to route only Firefox through a proxy for privacy or scraping? Use Manual proxy configuration in Firefox and leave system proxy unset.

Advanced Tips & Troubleshooting: macOS Proxy Setup

Some proxies require a username and password. On macOS, you’ll be prompted for credentials the first time you connect. If you repeatedly see authentication errors:
  • Double-check your username/password with your provider.
  • Update saved credentials in Keychain Access if needed (search for "proxy").
  • Some browsers (like Firefox) prompt separately. Re-enter credentials if prompted.
  • Premium proxies? See Premium Proxies for troubleshooting tips.

In System Preferences → Network → Proxies, tick Automatic Proxy Configuration and paste the full PAC file URL (e.g., http://provider.com/proxy.pac). PAC files use JavaScript to route traffic based on destination. If it doesn’t work:
  • Ensure the URL is accessible and starts with http:// or https://.
  • Click Apply after entering the PAC.
  • Contact your provider if you get errors or have questions about PAC file syntax.
  • Learn more: Advanced Proxy Usage

Visit IP Lookup Tool or DNS Leak Test to check your public IP. If you see the proxy’s IP (not your home IP), your proxy is working. For a full check, try the Proxy Checker Tool on this site.

For advanced users: Use the networksetup command in Terminal. Example:
sudo networksetup -setwebproxy Wi-Fi 123.45.67.89 8080
sudo networksetup -setsecurewebproxy Wi-Fi 123.45.67.89 8080
Replace Wi-Fi with your interface name. For other apps, set environment variables (e.g., export http_proxy=... for curl/wget). See Linux Proxy Setup Guide for more.

Some apps (like certain VPNs, chat clients, or specialty tools) use their own network stack and bypass system proxy. For these, look for proxy settings in the app itself, or use a proxy client like Proxifier to force routing. For browser-specific proxies, see Browser Proxy Setup Guide.

In System Settings → Network → Proxies, look for the field labeled “Bypass proxy settings for these Hosts & Domains”. Add domains (e.g., apple.com, localhost) separated by commas. Traffic to these sites will not use the proxy.

  • Use HTTPS or SOCKS5 proxies for secure traffic.
  • Never use free proxies for sensitive tasks (banking, logins).
  • Test for DNS leaks with DNS Leak Test.
  • Combine proxies with encrypted sites (https://) for end-to-end security.
  • Rotate proxies for scraping/automation to avoid bans.
  • See Proxy Security Tips for a full checklist.

Related Guides & Resources

Windows Proxy Setup Guide

Step-by-step instructions for setting up proxies on Windows 11/10, including browser and system configuration.

Linux Proxy Setup Guide

Learn how to configure proxies for Linux systems—system-wide, CLI, and browser-specific guidance.

Mobile Proxy Setup

How to configure proxies on Android and iOS, including manual and app-based instructions for privacy and speed.

SOCKS5 Proxy Setup

Everything you need to know about using SOCKS5 proxies on Mac, Windows, browsers, and automation tools.

HTTPS Proxy List

Browse secure HTTPS proxies—ideal for privacy browsing, scraping, and safe internet access.

What is a Proxy?

Understand the basics of proxies, how they work, and the main types available for privacy and access.

Proxy Best Practices

Get actionable tips for secure, reliable proxy use—avoid bans and maximize privacy on any platform.

Premium Proxies

Unlock access to the fastest, most reliable proxies—perfect for automation, streaming, or enterprise use.

Ready for high-speed, secure proxies? Upgrade to premium today—no spam, no sharing, just better performance.
Access Premium Proxies