What Is SOCKS5? The Protocol Explained in 5 Minutes
SOCKS5 is the protocol version of a simple idea: instead of connecting to the internet yourself, you hand the connection to a proxy server and let it open the socket for you. The client speaks SOCKS5 to the proxy; the proxy speaks plain TCP or UDP to the destination. That one indirection is why the protocol shows up everywhere from scraping pipelines to messaging clients — it moves connections without looking at them.
The definition is easy; the practice is where the surprises live. We probed 103 public SOCKS5 endpoints to see the protocol as it actually runs, retested a 50-endpoint sample with per-stage timing, and pushed test requests through every working tunnel. The four numbers below frame everything this page explains.
SOCKS5 is a routing protocol, not a security layer — the tunnel is only as trustworthy as the server operating it.
measured
1. What SOCKS5 Is: the Protocol in One Table
SOCKS stands for sockets, and version 5 — standardized as RFC 1928 in 1996 — is the current one. The protocol has exactly two jobs: agree on authentication with the client, then relay bytes between the client and whatever host the client names. It does not interpret the traffic, which is why any application protocol can ride on top of it. Version 5 added two things version 4 lacked: username-password authentication and UDP support, the latter being the reason modern proxies can handle DNS resolution and media traffic at all.
The six rows below are the whole protocol surface. Everything a SOCKS5 client and server say to each other fits inside them, and every field in the table is something a proxy checker, a client configuration screen or a failing server will make you notice sooner or later. The setup side of that story — the five fields you fill in and what live tunnels deliver — lives in our SOCKS5 proxy guide.
| Property | What the protocol defines |
|---|---|
| Transport | TCP for the handshake and relaying, plus UDP ASSOCIATE for datagram paths — version 4 was TCP-only |
| Layer | Session level, below TLS: it carries encrypted traffic untouched and adds no protection of its own |
| Auth methods | None (0x00), GSSAPI (0x01), username-password (0x02) — negotiated per connection at greeting |
| Commands | CONNECT for TCP tunnels, BIND for inbound, UDP ASSOCIATE for datagrams |
| Address types | IPv4, IPv6 and fully qualified domain names — the server may resolve DNS instead of the client |
| Wire format | Compact binary: one greeting, one method reply, one request, one status reply, then raw relay |
2. How the Handshake Runs, Timed on Live Endpoints
A SOCKS5 connection is a fixed five-beat conversation. The client sends a greeting listing the authentication methods it supports; the server picks one; the client sends a request naming the destination; the server answers with a status code; then the socket stops being SOCKS5 and becomes a plain pipe. A status reply of 0x00 means the tunnel is open — anything else (host unreachable, connection not allowed, command unsupported) ends the exchange.
To put real numbers on those beats, a 50-endpoint retest measured each stage separately against a direct connection to the same target. The handshake is the expensive part: opening TCP to the proxy is quick, but method negotiation plus authentication and then connecting onward to the destination add up to roughly 3.5× the cost of connecting directly. That overhead is the price of the indirection, and it is why proxy latency and direct latency are different budgets — the proxy tester breaks the same stages apart on any list you paste.
| Stage | Median via SOCKS5 | What happens in this stage |
|---|---|---|
| TCP connect | 250 ms | Socket to the proxy itself opens |
| Negotiate and authenticate | 877 ms | Greeting, method choice, optional username-password round trip |
| Connect to target | 1,369 ms | Request relayed; proxy dials the destination and returns the status code |
| Full request | 2,034 ms | First response byte received through the tunnel |
| Direct baseline | 581 ms | Same target, no proxy — the comparison floor |
3. What 103 Public Endpoints Show in Practice
The protocol above is stable; the servers speaking it are not. Probing 103 public SOCKS5 endpoints classified every outcome, and only about a third produced a working tunnel. The failure names are worth learning because they map directly to symptoms you will see in any proxy tool: a timeout means the port never answered, while no-acceptable-method means the port answered but could not complete a SOCKS5 conversation — often an HTTP server, a honeypot or a dead service squatting on the address.
Scale makes it worse, not better. A separate crawl pulled 80,272 deduplicated addresses from free sources and sampled 180 for a full handshake: none completed one. Free lists are leads to verify, not working infrastructure. The proxy checker runs this checklist on up to 50 addresses at once, and the proxy speed test adds a throughput grade for the ones that survive.
| Outcome | Endpoints | What it means |
|---|---|---|
| Working tunnel | 36 | Full handshake, then a successful request through the relay |
| TCP timeout | 27 | Port open in a list, dead in reality; the most common fate |
| No acceptable method | 17 | Answered TCP but not SOCKS5 — wrong protocol or impostor service |
| Connection reset | 5 | Server dropped the socket mid-greeting |
| HTTP, not SOCKS5 | 4 | An HTTP proxy answered where a SOCKS5 one was listed |
| Closed around handshake | 8 | Socket shut before greeting or right after connect |
| Reply codes and refused | 6 | Formal SOCKS5 failures: not allowed, host unreachable, general |
4. What SOCKS5 Does Not Do
It does not encrypt. The tunnel carries your bytes; it does not disguise them. An HTTPS request stays protected end to end because TLS runs above the tunnel, while plain HTTP through a SOCKS5 proxy is readable by the operator and anyone on the path. Choosing SOCKS5 is choosing routing flexibility, and the traffic inside should already be encrypted on its own terms.
It does not inject headers. Pushing test requests through every working tunnel, all 16 arrived at the destination without a single added X-Forwarded-For or Via line — there is no HTTP-aware layer in the protocol to add one. The reverse follows: the target sees the exit IP and nothing about you except what your own traffic reveals, so the exit is your entire identity to the far end.
It does not cover the machine. Unlike a VPN, nothing is captured that was not pointed at the proxy, so a misconfigured application connects directly and silently. And UDP support, while part of the standard, is the feature free servers most often leave unimplemented — which is exactly the gap a WebRTC leak test checks for.
Coherent routing needs a coherent profile — RoxyBrowser builds one in a click.
Try RoxyBrowser free — official downloadRoxyBrowser pairs each profile with its own proxy and matching fingerprint, so the exit IP, timezone and identity stop drifting apart. Official site roxybrowser.com; free trial, Windows, macOS and Linux builds.
Frequently Asked Questions
Is SOCKS5 encrypted?
No. SOCKS5 is a tunneling protocol: it relays bytes between your application and the target server but applies no encryption of its own. Anything you send is only as protected as the connection protocol on top of it — an HTTPS request stays encrypted end to end, while plain HTTP through a SOCKS5 tunnel is readable along the path. Treat SOCKS5 as routing, not security.
How is SOCKS5 different from a VPN?
A VPN captures all traffic from the operating system through a virtual network interface and usually encrypts it. SOCKS5 works per application: each program is pointed at the proxy explicitly, nothing is captured that was not configured, and there is no encryption layer. VPNs cover the whole device; SOCKS5 covers exactly the applications you point at it, which is why it stays popular for scraping, bots and client software that has a native proxy field.
Does SOCKS5 hide my real IP address?
From the target server's point of view, yes: it sees the proxy's exit IP, not yours. In our measurement of working endpoints, all 14 tested exits reported the same address from inside and outside the tunnel, so no chain of hops was involved. But the exit is a stranger's server, and the proxy operator sees your real address and everything you route through it.
Why do most free SOCKS5 proxy lists fail?
Because addresses decay faster than lists update. In one sweep, 103 public SOCKS5 endpoints produced 36 working tunnels — 27 timed out before the TCP handshake completed and 17 answered on the port but could not complete the SOCKS5 method negotiation. A wider crawl of 80,272 deduplicated addresses found zero usable proxies in a 180-address sample. Free lists are leads, not working infrastructure; verify before use.