Plans from $19/mo — 7-day money-back guarantee on your first card purchase → Plans from $19/mo — 7-day money-back →

SOCKS5 Proxy Server: How It Works, Ports and UDP

A SOCKS5 proxy server is a relay that forwards TCP and UDP traffic between a client and a destination after a short authentication handshake, without reading or rewriting the payload. It speaks SOCKS protocol version 5, defined in RFC 1928, and conventionally listens on TCP port 1080.

Key takeaways

  • SOCKS5 relays bytes at the session layer, so it carries HTTP, SMTP, IMAP, game traffic and anything else over TCP without per-application configuration.
  • UDP support is where providers diverge most: in a benchmark published in October 2026, Bright Data and IPRoyal returned a 0x07 error for UDP, while Decodo and Oxylabs closed UDP connections unexpectedly during testing.
  • Port restrictions cause more silent failures than bad credentials. Bright Data requires port 22228 for SOCKS5, and Decodo's residential endpoints allow only ports 80 and 443 by default.
  • SOCKS5 is standard on commercial proxy plans and is almost never billed as a separate add-on; you pay for gigabytes or for IPs.
  • Vendors publish different headline prices for the same product on different pages of their own sites, so always note which page a figure came from.

What is a SOCKS5 proxy server?

A SOCKS5 proxy server is a network relay that accepts a client connection, authenticates it if configured to, opens a matching connection to the requested destination, then forwards bytes in both directions without inspecting them. It operates at the session layer of the OSI model.

The negotiation is four messages long:

  1. The client connects over TCP and sends its protocol version plus the authentication methods it supports.
  2. The server replies with the method it selected: no authentication, username and password (RFC 1929), or a failure.
  3. The client sends a request containing a command (CONNECT, BIND or UDP ASSOCIATE) and a destination expressed as an IPv4 address, an IPv6 address, or a domain name.
  4. The server replies with the address and port it bound, and from that point it is a dumb pipe.

The domain-name address type is the detail that matters most in daily use. When the client sends a hostname, the proxy resolves it. That is what curl --socks5-hostname and the socks5h:// URL form request, as opposed to --socks5, which resolves locally and sends only the resulting IP.

Note: Local resolution sends the names you look up through your own resolver, which partly defeats the point of routing through a proxy in another region. Default to socks5h:// unless you have a reason not to.

Because SOCKS5 understands nothing about the application, it never injects headers, never caches, and never filters content. That is why it works with protocols an HTTP proxy can't touch, and also why it can't give you request-level logging.

How does SOCKS5 differ from an HTTP proxy?

An HTTP proxy parses request lines and headers, can cache responses, and needs a CONNECT tunnel before it can carry TLS. A SOCKS5 proxy parses none of that, which makes it the more general relay but the weaker tool for anything that wants to inspect or modify requests.

Pick SOCKS5 when the client speaks it natively; pick HTTP when you need caching, header rules or per-URL policy.

SOCKS5 proxy HTTP proxy
Protocol awareness None, forwards raw bytes Parses HTTP requests
TCP Yes, via CONNECT Yes, via request methods or CONNECT
UDP Yes, via UDP ASSOCIATE (if implemented) No
DNS resolution Local or remote (socks5h://) Remote for CONNECT hostnames
Authentication None, or username/password Basic, Digest, NTLM and others
Header rewriting Never Possible
Caching No Yes
Typical port 1080 8080 or 3128

The practical consequence is compatibility. A mail client, an SSH session, a database driver or a game launcher can all be pointed at the same SOCKS5 endpoint with no per-protocol handling. The flip side is that the proxy operator sees your destination addresses and timings but not the ability to enforce content rules, which is why corporate networks still mostly deploy HTTP proxies with inspection.

Which port does a SOCKS5 proxy server use?

Port 1080 is the conventional default, but the protocol doesn't mandate it, and commercial providers move it constantly. Bright Data's SOCKS5 documentation requires port 22228, accepts only domain names rather than IP addresses, expects the socks5h:// form for remote resolution, and allows only target ports above 1024.

Those restrictions are policy, not protocol. Providers close ports to reduce abuse of well-known services, and they restrict destination ports to keep traffic on web ports. Decodo takes a similar line: residential and mobile endpoints allow only ports 80 and 443 by default, while its ISP and datacenter products also open 563, 8443 and 43.

NodeMaven handles it differently again, serving SOCKS5 on the ranges 1080 to 2080 and 42000 to 43000, with HTTP on 8080 to 9080 and 32000 to 33000. Its authentication is encoded in the username, so switching between HTTP and SOCKS5 means changing only the port.

Before you debug credentials, verify three things: that the port you dialed is the one the panel assigned, that your destination port is on the allowed list, and that the destination was sent as a hostname rather than an IP if the provider requires it.

Pro tip: Run curl -v -x socks5h://user:pass@host:port https://example.com. A SOCKS reply code of 0x07 means the command itself isn't supported (UDP is the usual culprit), 0x02 means a policy refusal, and a plain timeout means the TCP connection to the proxy never completed at all.

Does SOCKS5 support UDP?

Yes in the specification, often no in practice. SOCKS5 defines UDP ASSOCIATE: the client asks the server to open a UDP relay, the server returns an address and port, and the client prepends a small SOCKS5 header to each datagram before sending it to that relay.

This is the feature that separates SOCKS5 from SOCKS4 and from HTTP proxies, and it matters for QUIC and HTTP/3, DNS over UDP, WebRTC, VoIP and some game and streaming protocols. When UDP is dropped, applications either fall back to TCP with a latency penalty or fail outright.

The 2026 benchmark data is the best illustration of how uneven support is. Bright Data and IPRoyal returned a 0x07 error, meaning the command was refused as unsupported. Decodo and Oxylabs closed UDP connections unexpectedly during testing. Yet Oxylabs states it carries UDP traffic on its residential network through both SOCKS5 UDP and MASQUE (CONNECT-UDP), each on a separate endpoint, enabling native HTTP/3 connections. NodeMaven is explicit that its residential and mobile SOCKS5 is TCP-only, with UDP available on the ISP/static product.

Different endpoints, different answers, even within one vendor. Test the specific endpoint you intend to use rather than trusting a feature matrix:

  1. Send a single DNS query over UDP through the proxy and check whether a reply comes back.
  2. Try a QUIC request to an HTTP/3-capable host.
  3. Compare against the same test over TCP. If TCP works and UDP returns 0x07 or a closed connection, the proxy does not relay datagrams.

What does a SOCKS5 proxy service cost?

Cost depends on whether you're buying bandwidth or IPs, and SOCKS5 itself is almost never a paid extra. Residential plans generally land between about $2.50 and $8 per gigabyte depending on volume and vendor, while datacenter and ISP proxies are billed per IP, from a few cents to a couple of dollars each.

Buy on the number that matches your workload: gigabytes for rotating residential, IPs for stable long-lived sessions.

Vendor Product Headline price Notes
Bright Data Residential, SOCKS5 page $8/GB, cut to $4.00/GB with coupon RESIGB50; $3.50/GB at $499/mo, $3.00 at $999, $2.50 at $1999 Pool quoted at 400M+ IPs in 195 countries
Bright Data Residential, general proxy page $8.4/GB, cut to $4.2/GB with coupon RESI50; $3.57, $3.15, $2.94/GB at the same tiers Different figures from its own SOCKS5 page
Decodo Residential $4/GB pay-as-you-go; $3.75/GB at 3GB falling to $2.75/GB at 100GB 3-day trial, 14-day money-back
Decodo Datacenter and static ISP From $0.026/IP and $0.27/IP, residential from $1.5/GB Chinese-language page, conflicts with the main SOCKS5 page
Oxylabs Dedicated datacenter From $1.90/IP advertised; pricing widget shows 3 IPs at $2.25/IP ($6.75/mo); dedicated page says from $1.2/IP Unlimited bandwidth on all plans; 2M+ dedicated IPs in 188 countries
Oxylabs ISP From $1.1/IP Residential pool quoted at 175M+ IPs in 195 countries, sticky sessions up to 30 minutes

The inconsistency is the story here. The same vendor lists two different price ladders for the same residential product on two of its own pages, and one vendor's translated page opens at a fraction of the entry price shown on its English SOCKS5 page. Treat any price table, including this one, as a dated snapshot and re-quote before you commit.

Shared vs private SOCKS5 proxies: which do you need?

A shared SOCKS5 proxy places many customers behind the same IP, while a private or dedicated one gives you an address no one else uses. Shared is billed per gigabyte and is cheaper to start; private is billed per IP and usually comes with unlimited bandwidth.

The mechanism behind the price difference is contention. On a shared IP, latency and behaviour are an average of every other customer's traffic at that moment, and you have no control over it. On a dedicated IP you get predictable throughput and a stable address, but you also pay for idle hours and have to handle rotation yourself if you need it.

Use a stable private IP when a session has to survive for hours: a long API conversation, a streaming connection, remote administration, or anything with a login that triggers re-verification on address change. Use rotating per-GB shared proxies when you need broad geographic coverage at low entry cost.

Warning: Private means exclusive, not encrypted. A dedicated IP changes who else is on the address, not whether the operator can observe your unencrypted traffic.

How do you set up a SOCKS5 proxy server yourself?

Run a daemon on a host with a stable IP, bind it to the interface you want, require authentication, and restrict access at the firewall. On a Linux VPS the whole job takes about fifteen minutes.

  1. Choose the software. Dante and 3proxy are the long-standing Linux and cross-platform options. Newer projects include S5Core and Nova-Proxy 3.8.0, and on Windows ProxiFyre 2.3.0 wraps a routing library as a service. Recent releases across this group concentrate on IPv6 routing, UDP reliability and encrypted transports.
  2. Bind and pick a port. 1080 by default. If only local applications will use it, bind to loopback so nothing external can reach the listener.
  3. Turn on authentication. Never leave the no-auth method enabled on a public address. RFC 1929 username and password is the baseline; if you need the traffic itself protected, put the listener behind WireGuard, because SOCKS5 provides no encryption of its own.
  4. Filter at the firewall. Allow only the client addresses you expect, and log refused connections so you notice misconfiguration early.
  5. Test both directions. curl --socks5-hostname user:pass@host:1080 https://ifconfig.me confirms TCP and remote DNS. A UDP DNS query through the relay confirms datagrams, which is where self-hosted setups most often fall short even when the daemon claims support.

One honest caveat: a self-hosted server gives you exactly one IP. If your use case needs many addresses across regions, hosting is the wrong tool and a commercial pool is the right one.

Limitations

SOCKS5 encrypts nothing. It moves bytes between two points, and anyone positioned between you and the proxy, or between the proxy and the destination, can read unencrypted traffic. If the requirement is confidentiality on an untrusted network, use WireGuard or a full VPN instead.

UDP support is unreliable enough that you should test rather than assume, and some clients never implement UDP ASSOCIATE at all. If your application depends on QUIC or real-time datagrams, verify per endpoint before committing to a plan.

It is also not a system-wide tunnel. Only applications configured to use the proxy are covered; other traffic, including some DNS lookups, can bypass it entirely. If you need everything on the machine routed, a VPN is the correct layer.

Finally, if you need request inspection, caching or per-URL policy, an HTTP proxy is the better fit. And if the honest answer to "which proxy should I use" is "none", for example because you control both endpoints and can use a direct encrypted connection, adding a relay only creates another party that can observe metadata.

Frequently asked questions

Is a SOCKS5 proxy faster than an HTTP proxy?

Usually the difference is smaller than the network latency between you and the proxy. Both are TCP relays once the tunnel is established, and SOCKS5 saves only a little handshake and header parsing overhead. Choosing a proxy closer to either endpoint will improve speed far more than choosing between the two protocols.

Does a SOCKS5 proxy hide my IP address?

The destination server sees the proxy's IP instead of yours. Your traffic is not hidden from the proxy operator, who can see which addresses you connect to, and it is not encrypted, so anyone on the network path can read unencrypted data. SOCKS5 changes your apparent address, not your exposure.

Can I use SOCKS5 in a browser?

Firefox has native SOCKS5 settings, including a remote-DNS checkbox you should enable. Chrome, Edge and Safari rely on operating-system proxy settings, which support SOCKS5 on macOS and Windows but frequently resolve DNS locally, so hostnames may still leak to your own resolver.

What is the difference between SOCKS4 and SOCKS5?

SOCKS4 handles only TCP over IPv4 and offers no real authentication beyond a user ID string. SOCKS5 adds IPv6 and domain-name addressing, username and password authentication, and UDP relay, which is why it is the version every current proxy service offers.

Do I need a username and password for a SOCKS5 proxy?

Only when the listener is reachable by anyone you don't trust, which on a public IP means always. Commercial providers often authenticate by IP allowlist or by embedding credentials in the username, while a self-hosted server exposed to the internet should require RFC 1929 credentials at minimum.

Start with the port, not the pricing page

Take the endpoint you already have and run one TCP request with socks5h:// plus one UDP DNS query before you compare a single price. Those two tests tell you whether the port is open, whether remote resolution works, and whether datagrams get through, which is most of what separates one SOCKS5 proxy server from another.

Manage multiple accounts from one browser

Sendwin is a native cloud browser that lets you log into multiple accounts on the same site simultaneously.

Visit Sendwin

Exit mobile version