# What is a SOCKS5 proxy?

> A SOCKS5 proxy passes on raw connections for any protocol and can resolve hostnames itself. Chrome speaks it, but not with a username and password.

Source: https://mosaicbrowser.com/glossary/socks5-proxy

## SOCKS5 proxy: a proxy that carries any TCP connection

A SOCKS5 proxy is a server that passes on network connections on a client's behalf at the transport level, so it carries any TCP protocol rather than only web requests. It is defined in RFC 1928, can resolve hostnames itself, and signs clients in with a username and password under RFC 1929.

![SOCKS5 is RFC 1928, published March 1996, drawn as a mosaic of tiles](https://mosaicbrowser.com/covers/socks5-proxy.webp)

A SOCKS5 proxy does not read your traffic as web pages. The client says "connect me to this host on this port", the proxy opens that connection from its own address, and from then on it passes bytes in both directions. That is why it carries mail, games, SSH and anything else that runs over TCP, and why it adds nothing to a request a site could read.

## How a SOCKS5 connection works

[RFC 1928](https://www.rfc-editor.org/rfc/rfc1928), from March 1996, defines the exchange in three steps.

1. The client lists the sign-in methods it supports. The codes are `X'00'` for no authentication, `X'01'` for GSSAPI and `X'02'` for username and password. The server picks one.
2. If it picked `X'02'`, the client sends a username and password, as defined in [RFC 1929](https://www.rfc-editor.org/rfc/rfc1929).
3. The client sends a request: `CONNECT` for an outgoing TCP connection, `BIND` for an incoming one, or `UDP ASSOCIATE` for UDP. The destination can be an IPv4 address, an IPv6 address, or a domain name (address type `X'03'`).

That last option is what lets the proxy, not your computer, look up the hostname. The lookup then happens from the proxy's network, and your own resolver never sees the name of the site you opened.

RFC 1929 is plain about its weakness: "Since the request carries the password in cleartext, this subnegotiation is not recommended for environments where 'sniffing' is possible and practical." SOCKS5 has no encryption of its own. An HTTPS page is still encrypted end to end by TLS inside the connection; the proxy sign-in is not.

Mosaic is a desktop app

Email yourself the link and open it on your computer.

[How it works: A new IP for every profile](https://mosaicbrowser.com/features/proxy-providers)

## SOCKS5 proxy vs HTTP proxy

|  | SOCKS5 | HTTP proxy |
| --- | --- | --- |
| What it carries | any TCP, plus UDP if the server supports it | web requests; HTTPS through a `CONNECT` connection |
| Adds headers a site sees | never | can, on plain `http://` requests |
| Hostname lookup | can be done by the proxy | done by the proxy for proxied requests |
| Password sign-in in Chrome | not supported | supported |

For a browser the practical difference is the last row. Most sellers who offer SOCKS5 also offer HTTP on the same account, and a line in either format looks much the same; [the ip:port:username:password format](https://mosaicbrowser.com/guides/proxy-format-ip-port-username-password) shows the common shapes.

## What Chrome does with a SOCKS5 proxy

Chromium's network documentation answers three questions in a few lines ([proxy.md](https://chromium.googlesource.com/chromium/src/+/HEAD/net/docs/proxy.md), read 2 November 2026). Name resolution "is always done proxy side", and Chrome has no option to change that, unlike Firefox. "No authentication methods are supported for SOCKSv5 in Chrome." And SOCKS5 "is only used to proxy TCP-based URL requests", so Chrome cannot send UDP traffic through it.

The second sentence is why a line like `socks5://user:pass@203.0.113.24:1080` fails in Chrome without a sign-in box: Chrome offers no authentication, the gateway insists, the connection is refused. The ways around it are in [Chrome SOCKS5 proxy with username and password](https://mosaicbrowser.com/guides/chrome-socks5-proxy-with-username-and-password). The third sentence matters for privacy: WebRTC uses UDP, so unless something stops it, it can leave outside the proxy and show a second address, which is a [WebRTC leak](https://mosaicbrowser.com/glossary/webrtc-leak).

![Bulk-importing proxies into Mosaic: every line read, new and duplicate ones told apart](https://mosaicbrowser.com/shots/proxy-import.png)
*A pasted list, each line read with its type*

## How Mosaic handles SOCKS5 proxies

Mosaic takes SOCKS5 proxies with a username and password, pasted on their own or in a list, and reads `socks5h://` as SOCKS5. Because Chrome cannot sign in to them, Mosaic logs in to the proxy for Chrome, on your computer: each profile that uses one gets its own local connection point on `127.0.0.1`, the browser connects to it with no password, and Mosaic signs in to the proxy with RFC 1929. One per profile, never shared. Mosaic passes the site's hostname to the proxy as a domain name, so the lookup happens at the proxy, the same way Chrome would do it. With a proxy attached, the engine also runs with `--webrtc-ip-handling-policy=disable_non_proxied_udp`, which stops WebRTC from going around the proxy. Before any profile opens, the proxy must answer and connect; if it does not, the launch stops and says which one failed.

## Sources

1. [RFC 1928: SOCKS Protocol Version 5](https://www.rfc-editor.org/rfc/rfc1928), read November 2, 2026
2. [RFC 1929: Username/Password Authentication for SOCKS V5](https://www.rfc-editor.org/rfc/rfc1929), read November 2, 2026
3. [Chromium: net/docs/proxy.md](https://chromium.googlesource.com/chromium/src/+/HEAD/net/docs/proxy.md), read November 2, 2026

## Questions

### Is a SOCKS5 proxy better than an HTTP proxy?

For a browser, rarely by much. An HTTP proxy carries HTTPS with CONNECT just as privately. SOCKS5 matters for non-web traffic and for proxy-side DNS, and Chrome cannot sign in to it with a password while it can with HTTP.

### Does a SOCKS5 proxy encrypt traffic?

No. SOCKS5 passes bytes on as they are. HTTPS pages stay encrypted end to end by TLS, but the username and password sign-in from RFC 1929 travels in cleartext, and the RFC says so.

### What is socks5h?

It is a convention from tools such as curl meaning SOCKS5 with the hostname resolved by the proxy instead of locally. Chrome always resolves hostnames on the proxy side for SOCKS5, so the distinction does not arise there.

### Can a SOCKS5 proxy carry UDP?

The protocol has a UDP ASSOCIATE command for it, but Chrome uses SOCKS5 only for TCP-based requests, so a browser's UDP traffic, such as WebRTC, does not go through it.

## Related

[Chrome SOCKS5 proxy with username and password](https://mosaicbrowser.com/guides/chrome-socks5-proxy-with-username-and-password): No Chrome extension can sign in to a SOCKS5 proxy, because Chromium supports no SOCKS5 login. Use the seller's HTTP port, an IP allowlist or a local proxy.

[Proxy format: ip:port:username:password explained](https://mosaicbrowser.com/guides/proxy-format-ip-port-username-password): The usual proxy format is ip:port:username:password. The same four values also come as username:password@ip:port, with or without a scheme in front.

[Residential proxy: an IP on a home internet connection](https://mosaicbrowser.com/glossary/residential-proxy): A residential proxy sends your traffic out through an address an ISP assigned to a home connection, so sites see a household rather than a data center.

[DNS leak: when your lookups skip the proxy](https://mosaicbrowser.com/glossary/dns-leak): A DNS leak is when the names you visit are looked up through your own provider's resolver instead of through the VPN or proxy, so it sees every site you open.

[WebRTC leak: when a page finds the address behind your proxy](https://mosaicbrowser.com/glossary/webrtc-leak): A WebRTC leak is a page learning your real IP address through WebRTC's STUN requests, which can go around a proxy or VPN instead of through it.





[Inspecting your traffic changes the TLS handshake a site sees](https://mosaicbrowser.com/blog/an-inspector-changes-the-handshake): Yes. mitmproxy and Proxyman open TLS to show you plaintext, so the site gets the inspector's ClientHello, not Chrome's. Inspect to debug, then turn it off.

## See SOCKS5 proxy on a real profile

Mosaic shows the values a site reads, per profile, and runs a leak test from inside the profile’s own page. Free covers 3 profiles with no card, and Pro is $25 a month for any number of them.

Mosaic is a desktop app

Email yourself the link and open it on your computer.
