Black Friday Up to 20% off with code BLACKFRIDAY until Tue 1 Dec, 23:59 UK time
OS

Browsers & OS · Setup guide

How to set a proxy on macOS

macOS stores proxy settings per network connection, with fields for your username and password. Safari, Chrome and most Mac apps follow them.

Broken on our side? Fixed within 48 hours of your report, or the unused part refunded. A website blocking the proxies isn’t covered. Refund Policy

Quick answer

To use a proxy on macOS, follow four steps: (1) Open System Settings → Network → your connection → Details; (2) Choose Proxies and turn on Web proxy (HTTP) and Secure web proxy (HTTPS); (3) Enter the host and port, turn on Proxy server requires password, and add your credentials; (4) Click OK. Take the host, port, username and password from a line in your ZenProxy generator.

You need macOS and a ZenProxy proxy line from the generator. In the examples, replace HOST, PORT, USERNAME and PASSWORD for the values in your line (where to find them).

Quick setup

  1. 1Open System Settings → Network → your connection → Details.
  2. 2Choose Proxies and turn on Web proxy (HTTP) and Secure web proxy (HTTPS).
  3. 3Enter the host and port, turn on Proxy server requires password, and add your credentials.
  4. 4Click OK.

Set the proxy

  1. 1Open the Apple menu → System Settings → Network.
  2. 2Select the connection you use (for example Wi-Fi) and click Details….
  3. 3Select Proxies.
  4. 4Turn on Web proxy (HTTP) and enter HOST as the server and PORT as the port. Turn on Proxy server requires password and enter USERNAME and PASSWORD.
  5. 5Do the same for Secure web proxy (HTTPS).
  6. 6Click OK, then open https://ipinfo.io/json in Safari to check.

Note: Settings are per connection: if you switch from Wi-Fi to Ethernet, set the proxy there too.

Your proxy details

After you buy a plan, open My proxies. Choose the Proxy Type (Rotating or Sticky; static IP plans skip this and show your list of IPs), the Protocol (HTTP, or SOCKS5 where your plan offers it) and a Format, then copy a line. The generator offers three formats (SOCKS5 lines always use the protocol:// format):

HOST:PORT:USERNAME:PASSWORD

Paste into apps and anti-detect browsers that split the fields or auto-fill them.

USERNAME:PASSWORD@HOST:PORT

Tools that want credentials before the address.

http://USERNAME:PASSWORD@HOST:PORT

Code and command-line tools. This is the proxy URL used in the examples below.

In the examples on this page, replace USERNAME, PASSWORD, HOST and PORT with the values from your line. SOCKS5_PORT is the port the generator shows when you pick SOCKS5.

Residential lines are either rotating (a new IP on new connections) or sticky (one IP for the time you choose). Static Datacenter, Shared ISP and Private ISP plans give you a fixed list of IPs, one per line as IP:PORT:USERNAME:PASSWORD: Private ISP IPs are yours alone, while Shared ISP IPs can also be used by other customers. Rotating Datacenter and IPv6 plans give you one endpoint, with rotating or sticky lines; IPv6 only reaches sites that have an IPv6 address.

To test a line, open https://ipinfo.io/json through it: it shows the exit IP and country. For HTTP lines you can also use the free proxy checker.

Skip the proxy for some sites

Add hosts and domains to Bypass proxy settings for these hosts & domains, separated by commas, and keep Exclude simple hostnames on for local names.

Terminal and developer tools

Tools such as cURL don’t read the macOS proxy settings. Set environment variables in your shell instead:

Terminal
export https_proxy="http://USERNAME:PASSWORD@HOST:PORT"
export http_proxy="http://USERNAME:PASSWORD@HOST:PORT"
curl https://ipinfo.io/json

SOCKS proxy

macOS also has SOCKS proxy, with the same password option, for apps that use the system SOCKS setting. Browsers such as Chrome can’t log in to SOCKS5 with a password, so HTTP lines are the safer choice. For per-app routing, use Proxifier.

Choose the country

Build the line in the generator: it writes the country, and a state, a city or a sticky session if you want one, into the username in the format your plan uses, and shows only the options your plan supports. On most residential plans the country is -country- and a two-letter code at the end of the username (for example USERNAME-country-gb), but older Unlimited Residential plans use a different format, so do not edit that username by hand. Datacenter and ISP IPs have a fixed location that you choose when you buy them.

Tips

  • Use a sticky line for the system proxy, so all apps keep one IP.
  • To turn the proxy off, switch off Web proxy and Secure web proxy in the same Proxies panel.

Troubleshooting

  • Safari can’t open pages

    Check the host and port, and that both the HTTP and HTTPS proxies are set.More on this error →

  • Repeated password prompts

    Re-enter the username and password from the generator under Proxy server requires password.More on this error →

  • Wrong country

    Set the country in the generator, which builds the username in the format your plan uses, then check https://ipinfo.io/json.More on this error →

Seeing another error? Read proxy errors and how to fix them, or contact support.

Questions

Does macOS support proxy authentication?

Yes. Turn on Proxy server requires password for each proxy type and enter your username and password.

Why does cURL ignore my Mac proxy settings?

Command-line tools generally read environment variables, not System Settings. Set https_proxy and http_proxy in your shell.

Can I use a proxy for one app only on a Mac?

Use the app’s own proxy settings, or Proxifier for Mac.

Do I need to set the proxy for Wi-Fi and Ethernet separately?

Yes. macOS keeps proxy settings per network connection.

Try it with macOS for $0.49

Get 1 GB of Residential Lite, then copy your rotating or sticky lines from the generator and paste them into the steps above.

Broken on our side? Fixed within 48 hours of your report, or the unused part refunded. A website blocking the proxies isn’t covered. Refund Policy

Related guides

All integrations →