Dev.to WebDev 🛠 Dev 👁 0 📖 4 min read

3 Ways to Set a Proxy in Chrome (and Why They're Not the Same Thing)

3 Ways to Set a Proxy in Chrome (and Why They're Not the Same Thing) "How do I set a proxy in Chrome" gets you three genuinely different answers depending on what you actually need: a system-wide setting, a command-lin

3 Ways to Set a Proxy in Chrome (and Why They're Not the Same Thing)

"How do I set a proxy in Chrome" gets you three genuinely different answers depending on what you actually need: a system-wide setting, a command-line flag for one launch, or a per-tab extension. They're often presented as interchangeable. They aren't — each has a different blast radius.

Quick answer

Method Scope Persists after restart? Affects other apps?
OS/system proxy settings Entire OS (most apps that respect system proxy) Yes Yes
--proxy-server launch flag That one Chrome process only No (must re-launch with the flag) No
Extension Chrome only, can be per-tab/per-profile Depends on the extension No

Method 1: system proxy settings

Chrome on Windows and macOS reads the OS-level proxy configuration by default (chrome://settings → System → "Open your computer's proxy settings" just opens the OS dialog — Chrome doesn't have its own independent system-proxy UI).

Where it lives:

  • Windows: Settings → Network & Internet → Proxy
  • macOS: System Settings → Network → (your connection) → Details → Proxies
  • Linux: depends on desktop environment, or set http_proxy/https_proxy env vars before launching Chrome from a terminal

Scope: this affects every application on the machine that respects the system proxy setting — not just Chrome. That's the main thing to know before changing it: if you just want to test something in Chrome, this is the wrong tool, because it changes behavior for other apps too.

Verify it's being used: visit chrome://net-internals/#proxy (or check network requests for the proxy's IP showing up as your apparent origin via an "what's my IP" check) to confirm Chrome picked up the system setting.

Method 2: the --proxy-server launch flag

For a single Chrome process, without touching system-wide settings:

# macOS
open -a "Google Chrome" --args --proxy-server="http://proxy.example.com:8080"

# Windows (cmd)
"C:\Program Files\Google\Chrome\Application\chrome.exe" --proxy-server="http://proxy.example.com:8080"

# Linux
google-chrome --proxy-server="http://proxy.example.com:8080"

A few things that trip people up with this method:

  • It only applies to that process. If Chrome is already running, the flag does nothing — you need to fully quit Chrome first (all windows, including background/tray instances) and relaunch with the flag.
  • It doesn't persist. Close Chrome, reopen normally, and you're back to whatever the system proxy is (or no proxy).
  • SOCKS5 syntax differs: --proxy-server="socks5://127.0.0.1:1080".
  • Bypass specific hosts: add --proxy-bypass-list="*.internal.example.com;localhost".

This is the right tool for a one-off test or a scripted/automated Chrome launch (e.g. in a CI pipeline or a Selenium/Playwright setup) where you don't want to touch the host machine's actual network configuration.

Method 3: a browser extension

An extension using Chrome's chrome.proxy API can set a proxy without you touching system settings or relaunching Chrome at all — toggle it from a popup, switch configurations per profile, sometimes per-tab depending on the extension's implementation.

What this buys you over the other two methods:

  • No relaunch required, no admin/system-settings access needed.
  • Can be scoped more narrowly than "the whole OS."
  • Easier for non-technical users to switch between configurations.

What it doesn't automatically give you: an extension setting Chrome's proxy doesn't, by itself, change your DNS resolution path, doesn't protect WebRTC from leaking your real IP (that's a separate browser privacy setting — covered in a follow-up post), and only one extension can control Chrome's proxy setting at a time. If your connection mysteriously stops routing through the proxy you just configured, check whether a different proxy extension is still enabled and fighting for control.

I work on Axio Proxy, a proxy extension for Chrome — it falls in this third category: connect through the popup, no OS-level config, no relaunch.

Checking it actually worked

Regardless of which method you used, verify before you trust it:

  1. Visit an IP-check endpoint (curl ifconfig.me, or any "what's my IP" page) and confirm it shows the proxy's IP, not your real one.
  2. Check chrome://net-internals/#proxy for the active proxy configuration Chrome is actually using.
  3. If something that should be proxied isn't, check for a bypass list entry that's exempting it.

Troubleshooting

Symptom Likely cause
Proxy setting doesn't seem to apply Chrome was already running when you used --proxy-server; fully quit and relaunch
Works, then stops after a Chrome update/restart --proxy-server doesn't persist — it's not a bug, it's always been a per-launch flag
Traffic to one site bypasses the proxy Check your bypass list / the site might be in an extension's exclusion rules
Two extensions fighting over the proxy setting Only one extension can control Chrome's proxy at a time — disable the other

FAQ

Which method should I use?
System settings if you want it to apply everywhere and don't mind touching OS config. The launch flag for one-off/scripted use. An extension if you want to toggle it on demand without relaunching or touching system settings.

Is using a proxy in Chrome illegal?
No — proxies are a normal networking tool. Whether a specific use of one is permitted depends on the terms of service of whatever you're connecting to, which is a separate question from the mechanism itself.

Does setting a proxy in Chrome protect my IP everywhere on my machine?
Only the system-settings method (method 1) affects other applications. The flag and extension methods are scoped to Chrome.

Which method do you reach for by default, and has the --proxy-server "doesn't apply because Chrome was already running" gotcha caught you before?

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.