Chrome SOCKS5 proxy authentication: what works, tested
Chrome sends no SOCKS5 login. What an extension, a local forwarder, Playwright, Puppeteer and PAC files do with one, from a dated loopback test.

Quick summary · TL;DR
- Don't spend time on Chrome flags or settings, because the login is never sent. Chrome's SOCKS5 greeting is hard-coded to one method, no authentication. A server that wants a login answers 0xFF. Gerrit change 5952488, the fix that would add it, has sat unmerged since October 2024.
- An extension won't fix it, even one written for proxy auth. In the test, onAuthRequired never fired for a SOCKS5 proxy and the page failed with net::ERR_SOCKS_CONNECTION_FAILED. The same extension logged in to an HTTP proxy on the first try.
- If it has to be SOCKS5, put a forwarder on 127.0.0.1. pproxy took Chrome's no-login connection and logged in upstream, and the upstream logged the RFC 1929 login as OK. Check the bind, though. With an empty host it listened on every interface.
- Keep credentials out of PAC files. A SOCKS5 entry with user:pass@ in it didn't error. Chrome skipped it and loaded the page directly, with the proxy never contacted.
Chrome SOCKS5 proxy authentication doesn’t exist: Chrome cannot send a SOCKS5 username and password. Its SOCKS5 client offers the server exactly one method, no authentication, and gives up when the server asks for a login. An extension can’t change that. What does work is a local forwarder that holds the login, the same credentials on an HTTP endpoint, or an upstream that recognises your source IP instead.
The error strings themselves, from ERR_NO_SUPPORTED_PROXIES to the localhost bypass, belong to a separate SOCKS5 troubleshooting guide. This one is for readers who have probably already seen the error and want to know which workaround is real. It tests the routes around the gap.
Everything below was run on 5 November 2026 (UTC) on macOS 26.6.2, against small test servers on 127.0.0.1:
- a SOCKS5 server that requires an RFC 1929 login
- the same server without one
- an HTTP proxy that wants Basic auth
The browsers were Google Chrome 157.0.8103.38 and Chrome for Testing 149.0.7827.55, each with a fresh temporary profile and driven by playwright-core 1.64.1 and puppeteer-core 25.16.0. Windows and Linux were not tested. Where a fact depends on the OS, it comes from the docs and says so.
Chrome SOCKS5 proxy authentication, route by route
Every time Chrome reached the SOCKS5 server with a login, the server logged the same greeting, greeting methods=[0]. Chrome offered “no authentication” and nothing else, and the server log is what each row below is judged by.
| Route | What happened | Did the login reach the proxy? |
|---|---|---|
| MV3 extension, chrome.proxy set to SOCKS5 with a login, onAuthRequired listening | net::ERR_SOCKS_CONNECTION_FAILED, listener never called | No |
| Same extension, HTTP proxy with a login | Page loaded, listener called once with isProxy: true | Yes, Basic |
| pproxy on 127.0.0.1 holding the login, Chrome pointed at it | Page loaded | Yes, RFC 1929 -> OK |
Playwright proxy with socks5 plus username and password | Browser does not support socks5 proxy authentication at launch | No |
Puppeteer --proxy-server=socks5://... plus page.authenticate() | net::ERR_SOCKS_CONNECTION_FAILED | No |
PAC returning SOCKS5 HOST:PORT for a login server | net::ERR_SOCKS_CONNECTION_FAILED | No |
PAC with user:pass@ inside the SOCKS5 entry | No error, page loaded directly, proxy never contacted | No, and it bypassed the proxy |
Only the forwarder row gets a SOCKS5 login to the server, and Chrome isn’t the one sending it. The HTTP row works because it isn’t SOCKS5 at all.
Why Chrome has no SOCKS5 login
It’s a missing feature, not a bug in your setup. The Chromium proxy documentation (checked 5 November 2026) states that no authentication methods are supported for SOCKSv5 in Chrome, although the protocol has some. The code agrees. In socks5_client_socket.cc at commit 667cba3, a main-branch commit from 5 November 2026, the greeting is a fixed three bytes. The file hadn’t changed since July 2025, so this isn’t new:
static constexpr std::array<uint8_t, 3> kSOCKS5GreetWriteData{
0x05, 0x01, 0x00}; // no authentication
That is version 5, one method, method 0x00. If the server answers with any method other than 0x00, the next function logs SOCKS_UNEXPECTED_AUTH and returns ERR_SOCKS_CONNECTION_FAILED. A server that needs a login answers 0xFF (no acceptable method) to that greeting, so Chrome never gets as far as sending a username.
A fix exists on paper. Gerrit change 5952488, “Implement SOCKS5 proxy server authentication support”, was opened by an outside contributor on 22 October 2024. It adds username and password fields to the proxy config and accepts socks5://username:password@host:port in --proxy-server, and it references tracker issues 40323993 and 40180343. On 5 November 2026 its status was still NEW, unmerged, last updated 30 July 2025. The tracker pages themselves need a sign-in to read, so the bug numbers here come from the change.
The net-dev discussion from 24-25 October 2024 explains the hesitation. Chromium engineers raised three concerns:
- SOCKS5 sends the password in cleartext, one reason HTTP proxy auth got priority.
- PAC scripts, system settings and OS-level PAC handling may not understand credentials in a SOCKS5 URL, so the same config could behave differently.
- A unique password per user could be used to track that user.
One engineer also noted that routing a SOCKS5 auth request to the same place HTTP proxy auth goes, the code path behind the login prompt, could be hard. That detail matters for the next section.
Extensions with chrome.proxy and onAuthRequired
This is the workaround most often suggested, so it got the most careful test. The extension was minimal: Manifest V3, permissions proxy, webRequest and webRequestAuthProvider, a service worker that calls chrome.proxy.settings.set(), and an onAuthRequired listener registered with asyncBlocking that answers with the canary login. The webRequest reference (checked 5 November 2026) lists webRequestAuthProvider as required for onAuthRequired and describes isProxy as true for Proxy-Authenticate.
chrome.webRequest.onAuthRequired.addListener(
(details, callback) => callback({ authCredentials: { username: USERNAME, password: PASSWORD } }),
{ urls: ['<all_urls>'] },
['asyncBlocking']
);
The first surprise came before any proxy was involved. Branded Chrome 157 refused to load it from the command line and printed this to stderr:
--load-extension is not allowed in Google Chrome, ignoring.
That’s deliberate. A Chromium extensions PSA from April 2025 announced the flag’s removal from branded builds starting with Chrome 137, while Chromium and Chrome for Testing keep it. In branded Chrome, the documented way to load an unpacked extension is the one in Chrome’s Hello World tutorial: open chrome://extensions, turn on Developer mode, click Load unpacked and pick the folder that holds manifest.json. Automation that injects a proxy-auth extension with --load-extension needs Chrome for Testing or Chromium now. The rest of the extension runs used Chrome for Testing 149.
Then the results:
- SOCKS5 with a login.
chrome.proxy.settings.get()confirmed the extension controlled the proxy ("levelOfControl":"controlled_by_this_extension"). The page failed withnet::ERR_SOCKS_CONNECTION_FAILED. The only event the extension saw wasonErrorOccurred.onAuthRequirednever fired, and the server loggedgreeting methods=[0]followed byno acceptable method, replying 0xFF. - HTTP with a login. The page loaded.
onAuthRequiredfired once with"isProxy":true,"scheme":"basic"and the proxy’s address as the challenger. The proxy log showed the first request with noProxy-Authorization, then the retry with Basic credentials marked OK. - PAC through the extension. A
pac_scriptreturningSOCKS5 127.0.0.1:PORTfor the login server failed exactly like the fixed setting.
The reason fits the source. onAuthRequired is the hook for an HTTP 401 or 407 challenge, and SOCKS5 never produces one in Chrome because the handshake fails one step earlier. An extension that promises a SOCKS5 login in Chrome is either pointing Chrome at an HTTP endpoint, running a forwarder somewhere, or not working. Worth checking before you install one, because a proxy extension sees every URL you visit.
A local forwarder that adds the login
If you have to keep SOCKS5, this is the route that works. A small proxy on your own machine accepts Chrome’s no-login connection on 127.0.0.1 and opens its own connection upstream, this time with the username and password. The test used pproxy 2.7.9 in a virtualenv, nothing installed globally:
python3.13 -m venv ~/pproxy-venv
~/pproxy-venv/bin/pip install pproxy
~/pproxy-venv/bin/pproxy -l http+socks5://127.0.0.1:1080 -r "socks5://HOST:PORT#USERNAME:PASSWORD" -v
-l is what Chrome talks to: one port that answers both HTTP and SOCKS5. -r is the upstream, with the login after the #. Then start Chrome against the local port:
google-chrome --user-data-dir="$(mktemp -d)" --proxy-server="socks5://127.0.0.1:1080"
On macOS the binary sits inside /Applications/Google Chrome.app/Contents/MacOS/. The Chromium doc describes --proxy-server with no OS caveat, but Windows and Linux weren’t run here. In the run, Chrome 157 loaded the page through the forwarder on both socks5:// and http:// to the same local port, and so did curl 8.7.1. The upstream server’s log is the proof that the login went through:
[socks5:11181] greeting methods=[2]
[socks5:11181] RFC1929 auth ver=1 user='canary-user' pass_len=16 -> OK
[socks5:11181] request cmd=1 atyp=0x03(DOMAIN) dst=canary.test:18180
Method 2 is username and password, and atyp=0x03 means the hostname arrived as a name. Chrome resolves SOCKS5 names on the proxy side, pproxy passed the name on, and so the lookup still happened upstream rather than on your machine. For comparison, curl straight at the upstream with no login printed curl: (97) No authentication method was acceptable.
One snag cost real time. On Python 3.14.6, pproxy 2.7.9 exited at startup with RuntimeError: There is no current event loop in thread 'MainThread'. The same version ran fine on Python 3.13.14, so pin the interpreter when you build the virtualenv.
Bind the forwarder to 127.0.0.1
The forwarder holds your login, and anyone who can connect to it gets to use that login without knowing it. So the listen address matters more than any other flag. Two pproxy forms in the run listened on every interface:
-l http+socks5://:11192, with the host left empty, printedServing on ipv? 0.0.0.0:11192andServing on ipv? :::11192.lsofshowedTCP *:11192 (LISTEN)on both IPv4 and IPv6.- No
-lat all uses pproxy’s default, which its help text gives ashttp+socks4+socks5://:8080/.lsofshowedTCP *:8080 (LISTEN).
A client that sent no credentials went straight through the open listener, and the upstream logged RFC1929 auth ... -> OK for it, because the forwarder logged in on its behalf. The test stayed on loopback, so it didn’t measure who else on a real network could reach that port. What a wildcard bind means is not in doubt, though: any host that can route to your machine on that port gets a proxy that’s already logged in.
Playwright, Puppeteer and PAC files
Playwright and Puppeteer with a SOCKS5 login
Neither library can do what Chrome can’t. They differ in how loudly they say so.
- Playwright 1.64.1,
proxy: { server: 'socks5://HOST:PORT', username, password }. It refused at launch withbrowserType.launch: Browser does not support socks5 proxy authentication. That’s the most helpful outcome on the list, since nothing starts with a broken config. - Playwright with the login inside
serverinstead. No launch error. The page failed withnet::ERR_SOCKS_CONNECTION_FAILEDand the server sawgreeting methods=[0], so Playwright appears to strip them before Chrome sees the proxy. It’s easy to miss, because the code looks like it passes a login. - Puppeteer 25.16.0,
--proxy-server=socks5://HOST:PORTpluspage.authenticate().net::ERR_SOCKS_CONNECTION_FAILED, no warning.page.authenticate()answers HTTP challenges, and there wasn’t one. - Both against an HTTP proxy with a login. Playwright’s
usernameandpasswordfields and Puppeteer’spage.authenticate()each loaded the page, and the proxy logged a valid Basic header. - Both against the local forwarder, no login in code. Loaded in both, with the upstream logging the RFC 1929 login.
The Playwright proxy guide and the Puppeteer proxy guide cover the rest of each library’s proxy options.
PAC files with SOCKS5
PAC files have their own SOCKS5 traps, and the worst one fails open. The Chromium doc lists SOCKS5 proxy:8080 as the SOCKS5 identifier and SOCKS proxy:8080 as SOCKSv4. Six PAC files, served from loopback to Chrome 157 with --proxy-pac-url, gave this:
| PAC returns | Result in Chrome 157 |
|---|---|
SOCKS5 127.0.0.1:PORT, no-login server | Page loaded; the server got the hostname, not an IP |
SOCKS5 127.0.0.1:PORT, login server | net::ERR_SOCKS_CONNECTION_FAILED |
SOCKS 127.0.0.1:PORT | Chrome spoke SOCKS4; the server logged first byte 0x04 |
SOCKS5 USERNAME:PASSWORD@127.0.0.1:PORT | No error; page loaded directly, proxy never contacted |
SOCKS5 127.0.0.1:PORT; DIRECT, login server | Proxy refused, then the page loaded directly |
SOCKS5 127.0.0.1:PORT pointing at the forwarder | Page loaded; upstream logged the login |
The two “loaded directly” rows are the dangerous ones. To see where traffic went, the test mapped the hostname to the target with --host-resolver-rules, so a direct connection could succeed. Both pages loaded and the target logged the requests. With the credential entry, the proxy logged nothing at all, so Chrome dropped the entry as unusable and went direct. With ; DIRECT, the login server logged Chrome’s greeting methods=[0] and its own 0xFF reply, and Chrome then took the next item on the list. Without the mapping, both files ended in net::ERR_NAME_NOT_RESOLVED, which means Chrome had asked the local resolver for the name.
The chrome.proxy API has a pacScript.mandatory flag, and it looks like the fix. It isn’t. The Chromium doc ties it to a PAC file that can’t be fetched, and in a second run through the extension in Chrome for Testing 149, "mandatory":true changed nothing here: the credential entry and the ; DIRECT list both still loaded the page directly. Only a list with no DIRECT in it failed closed, with net::ERR_SOCKS_CONNECTION_FAILED.
So a PAC file can route to a SOCKS5 proxy, but only to one that needs no login, which in practice means your local forwarder. Leave DIRECT out of the list if a direct connection would be a leak for your job, and run a proxy DNS leak test after any PAC change.
IP allowlisting as the no-login option
The other way around the gap is to remove the login altogether. With IP allowlisting, the proxy accepts connections from source addresses you have registered with it, so Chrome connects with --proxy-server=socks5://HOST:PORT and the greeting with method 0x00 is accepted. Chrome needs nothing extra.
It fits a narrower set of setups than people expect:
- A fixed public IP is required. Home connections get new addresses, laptops roam between networks, and a machine behind carrier-grade NAT shares its address with strangers.
- Everyone behind that IP is authorised. In an office or on a shared VPN exit, every device on the same address can use the proxy.
- The list is one more thing to maintain. A new server or a changed egress IP shows up as a refused connection rather than an auth error, which makes it slower to diagnose.
If your provider offers it and your machine has a stable address, it is the simplest setup. Where it doesn’t fit, the forwarder or an HTTP endpoint does the same job with a username and password.
Chrome SOCKS5 proxy authentication: pick one
Chrome SOCKS5 proxy authentication isn’t coming in a flag soon, so pick by what your job needs:
- You need a browser and a login, nothing more: use the HTTP endpoint with the same credentials. Chrome’s prompt,
chrome.webRequest.onAuthRequired, Playwright’susernameand Puppeteer’spage.authenticate()all handle it, and HTTPS still goes end to end through CONNECT. The SOCKS5 vs HTTP proxy guide covers what you give up, which for most browser work is nothing. - The job must stay on SOCKS5: run a forwarder on 127.0.0.1, point Chrome, Playwright or Puppeteer at it with no login, and check the bind with
lsof. - You manage PAC files: return
SOCKS5, notSOCKS, never put credentials in an entry, and leaveDIRECTout unless direct traffic is acceptable. - The machine has a fixed public IP: allowlisting removes the login from the picture, if your provider supports it.
- An extension claims SOCKS5 login in Chrome: find out which of the routes above it really uses before you give it every URL you visit.
For long browser sessions on one stable address, static ISP proxies carry HTTP and SOCKS5 on the same order with a username and password, so the HTTP endpoint is there for Chrome and SOCKS5 stays available for tools that can send a login.
Frequently asked questions
No. The Chromium proxy documentation says no SOCKSv5 authentication methods are supported, and Chrome's SOCKS5 client offers a server only the no-authentication method. A change that would add it has been open on Chromium's code review since October 2024, still not merged. For a login, use an HTTP endpoint or a local forwarder instead.
Put a local forwarder such as pproxy between Chrome and the proxy. It listens on 127.0.0.1 without a login and connects to the upstream SOCKS5 proxy with your username and password. Start Chrome with --proxy-server=socks5://127.0.0.1:PORT, and Chrome never needs to send a login while the upstream sees a normal RFC 1929 one.
Not on its own. In a test with chrome.proxy and webRequest.onAuthRequired, the listener never fired for a SOCKS5 proxy with a login and the page failed with net::ERR_SOCKS_CONNECTION_FAILED. The same listener did answer an HTTP proxy's 407 challenge. Extensions that offer SOCKS5 login in Chrome must rely on an HTTP endpoint or a separate forwarder.
No, because Chrome doesn't. With --proxy-server=socks5://HOST:PORT and page.authenticate(), Puppeteer 25.16.0 gave net::ERR_SOCKS_CONNECTION_FAILED with no warning. Playwright 1.64.1 refuses at launch with "Browser does not support socks5 proxy authentication". Both work with an HTTP proxy login or a local forwarder.
No. Chrome 157 ignored a SOCKS5 PAC entry written with user:pass@ and loaded the page directly without contacting the proxy, and without showing any error. Setting pacScript.mandatory to true through an extension didn't stop that. PAC entries carry only a keyword, a host and a port. Point the PAC file at a local forwarder that holds the login.
It is when it listens on 127.0.0.1 only. Bound to all interfaces, it lets anyone who can reach the port use your proxy login, since the forwarder logs in for them. With pproxy, an empty host and a missing -l option both produced a listener on every interface. Always write 127.0.0.1 into the listen address and check it with lsof.
In a PAC file, the bare SOCKS keyword means SOCKSv4 in Chrome, according to the Chromium proxy documentation. In the test the server logged a first byte of 0x04. Write SOCKS5 HOST:PORT to get SOCKS5 with proxy-side name resolution.
Researched and drafted with AI tools, then checked against our publishing rules before it went live: 9 outside links, 5 links to other proxymint pages, no prices and a fact-check pass against our product records. How we write.
