SOCKS5 Chrome: 62 Handshakes, No Password Field

Chrome has never shipped a SOCKS5 dialog of its own. The host and port fields people fill in belong to the operating system, and the only way to point the browser at a proxy without touching the system is a launch flag. Either route ends in the same place: Chrome runs its own SOCKS5 client, and that client has habits the settings screens never describe.

We put a local SOCKS5 server in front of Chrome 155 and recorded every byte it sent. Sixty-two connections later two facts dominate. The browser offers exactly one authentication method and has no code path that carries a password, and it sends every target as a domain name, even when the URL is a bare IP address.

62connections recorded at the server
1method offered in every greeting
32/32targets sent as domain names
20 msspread of five attempts at one URL

The client is stricter than the endpoints it is pointed at. A proxy that insists on credentials cannot be used at all, and a proxy that only accepts a packed IPv4 target will never see a request.

measured

1. The greeting is three bytes and it never changes

A SOCKS5 conversation opens with the client naming the authentication methods it can perform. Chrome's opening bytes were 05 01 00 on all 61 connections that sent a greeting: version 5, a list of one method, and that method is no-authentication. Not one of the 62 connections offered username and password, and the single socket that sent nothing had already been dropped during a preconnect.

That turns the method list into a hard limit rather than a preference. When the test server answered by selecting the username-password method, Chrome closed the connection without sending a single byte of a credential exchange, and the navigation ended at ERR_SOCKS_CONNECTION_FAILED. There is no prompt to type into, no field to pre-fill, and no retry that carries an identity.

Chrome SOCKS5 greeting outcomes against three server authentication answers.
Server answersWhat Chrome sent nextNavigation result
05 00, no authenticationA CONNECT carrying a target, 32 timesPage rendered through the tunnel
05 02, username and passwordNothing, socket closedERR_SOCKS_CONNECTION_FAILED
05 ff, no acceptable methodNothing, socket closedERR_SOCKS_CONNECTION_FAILED

The practical reading is blunt. Paid SOCKS5 endpoints almost always want a username and password, and Chrome cannot supply one, which is why so many guides quietly move the job to an extension or a helper application that speaks the full protocol on the browser's behalf.

2. Every target arrives as a hostname

The second surprise sits inside the request. All 32 CONNECTs that carried a target used the domain-name address field, and none used the packed IPv4 field. That held even when the address bar contained a literal address: 1.1.1.1 was sent four times as the string 1.1.1.1, and 127.0.0.1 twice, both inside a domain-type frame.

So Chrome does not have the socks5 and socks5h split that curl exposes. It only ever speaks the remote-resolution dialect and lets the proxy do the lookup, which is why a proxy log shows hostnames rather than the addresses they resolved to. The destination host is visible to the proxy even when the traffic inside the tunnel is encrypted.

This cuts both ways for anyone testing endpoints. A checker that dials 1.1.1.1 with an IPv4 target asks a question Chrome never asks, so its verdict can be wrong in either direction. An endpoint that refuses domain targets while accepting addresses will fail every page and pass every IP-based test; the two endpoints that granted only the hostname form in our macOS sweep are the mirror image, and they happen to match what Chrome needs.

3. A password in the proxy string deletes the proxy

The obvious workaround, putting the credential in the URL, fails earlier than the handshake. Launching with socks5://user:pass@127.0.0.1:11085 produced zero connections: the server never saw a socket, and the page stopped at ERR_NO_SUPPORTED_PROXIES. The string is discarded while it is being parsed, so the credential does not get ignored at negotiation, it removes the proxy entirely.

That is the opposite of how Chrome treats an HTTP proxy, where a 407 response brings up a login box. The dialog exists because the HTTP proxy path has somewhere to put it; the SOCKS path has no equivalent surface, and the flag parser treats the userinfo as an unsupported form rather than a hint.

What actually works is moving the credential one hop away. A local relay accepts Chrome's passwordless greeting, performs the username-password exchange with the real endpoint upstream, and hands the tunnel back. The browser keeps its single-method habit, the paid endpoint gets its credentials, and the launch flag stays a plain host and port.

4. A refused CONNECT turns into a fan-out

Failure does not make Chrome patient. In a second run the server accepted the greeting and then refused every CONNECT, which let each attempt be attributed to a host and a timestamp. One navigation to a single address produced sixteen connections in 1,185 milliseconds.

Five of those were for the page itself: four to port 80 and one to port 443, all inside a 20-millisecond window, two of them in the same millisecond. The rest were Chrome's own services, and www.google.com alone accounted for seven attempts. This is a fan-out, not a backoff with growing pauses.

Sixteen refused CONNECTs from one navigation, attributed by host and first-attempt timing.
Target as loggedAttemptsFirst attempt, ms after launch
example.org:804719
example.org:4431739
www.google.com:4437549
Three other service hosts3571 to 675

The consequence shows up on the proxy side, where one failed page can look like five requests in a log and one healthy page can look like two. It also means a struggling endpoint receives the retries long before the tab gives up, which is how a slow proxy turns into a saturated one.

5. A bypass list is a page rule, not a privacy rule

Chrome exempts loopback addresses from the proxy without being asked. Pointing the browser at a page on 127.0.0.1 loaded it with the server untouched by the page request, which is the behaviour people rely on when they add localhost to a bypass list. The browser itself did not stay off the proxy: five connections still arrived while that page was on screen.

Those five went to Chrome's own services. One was a cleartext GET to clients2.google.com on port 80 requesting a time value with a cup2key parameter, and the others opened TLS to www.gstatic.com, update.googleapis.com, www.google.com and accounts.google.com. A bypass rule written for pages did not apply to any of them.

Page versus background traffic through the proxy under default bypass and a loopback override.
Launch configurationPage through proxyBackground through proxy
Default bypass rulesNo, loaded directYes, 5 connections
Bypass list set to loopback overrideYes, 2 connectionsYes, 5 connections

Forcing loopback into the tunnel is still useful when the point is to watch what the browser does, and it also confirms the address habit from section two: 127.0.0.1 arrived as a domain name and the request inside the tunnel read GET / with Host: 127.0.0.1:11090. If the goal is to keep traffic away from a proxy, the bypass list is the wrong instrument, because the browser will keep talking to its own infrastructure regardless of what the page is allowed to do.

One Chrome profile, one proxy, one identity — and the credentials live in the profile rather than in a launch flag that cannot carry them.

Download RoxyBrowser

Each profile stores its own proxy with its own authentication, so an endpoint that needs a password can be used without a relay and without touching the system setting.

Frequently Asked Questions

Can Chrome use a SOCKS5 proxy that needs a username and password?

No. All 61 greetings recorded here were the same three bytes, 05 01 00, which declares one supported method and offers only no-authentication. When the server answered by selecting username and password instead, Chrome closed the socket without sending a single byte of credentials, and the page failed with ERR_SOCKS_CONNECTION_FAILED.

Why does Chrome send an IP address as a domain name?

Because its SOCKS5 client always asks the proxy to resolve. All 32 requests that carried a target used the domain-type address field, including the ones where the URL was a bare 1.1.1.1 or 127.0.0.1, so a literal address never left the browser as a packed IPv4 value.

Why does a proxy URL with a password fail before it connects?

The string is rejected while it is parsed, not while it is negotiated. Passing socks5://user:pass@127.0.0.1:11085 produced zero connections to the server and the navigation ended at ERR_NO_SUPPORTED_PROXIES, so the credential removed the proxy rather than being ignored at the handshake.

Does a bypass list keep Chrome's own traffic off the proxy?

No. With the default rules the page at 127.0.0.1 loaded without touching the proxy, yet five connections still went through it for Chrome's own services, including a cleartext time query to clients2.google.com on port 80. The bypass list is a rule about pages, not about the browser.