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

Proxy SOCKS 5: What It Is and How It Works

SOCKS5 is a proxy protocol that relays a client's TCP connections, and optionally its UDP traffic, to a destination server without inspecting or rewriting the application data inside them. It isn't tied to HTTP, so it carries mail, SSH, DNS, game traffic and custom TCP protocols as readily as web requests.

The protocol itself has barely moved since the mid-1990s. What moves constantly is provider behaviour: which products accept SOCKS5, which destination ports stay open, whether UDP works, and whether SOCKS5 costs extra.

Key takeaways

  • SOCKS5 relays TCP by default. UDP works only when the server implements the UDP ASSOCIATE command, and support differs by provider and by proxy type within the same provider.
  • Static SOCKS5 addresses are normally billed per IP at roughly $1–$4 per month. Rotating residential SOCKS5 is billed per gigabyte instead, so the pricing model matters more than the headline number.
  • Most failed SOCKS5 connections are closed destination ports or blocked domains, not protocol incompatibility. Check the port matrix before you buy.
  • SOCKS5 encrypts nothing. It moves bytes; HTTPS, SSH or a VPN handle confidentiality on top.
  • A few large providers now ship UDP over SOCKS5 on residential networks, but entry-level and lite plans are usually excluded.

What is a SOCKS5 proxy?

A SOCKS5 proxy is a server that accepts client connections using version 5 of the SOCKS protocol and forwards them to a destination address on the client's behalf. It works at the session layer, so it relays any TCP-based protocol, and optionally UDP, without needing to understand what's inside.

The handshake takes three moves. The client opens a TCP connection and lists the authentication methods it supports. The server picks one, usually no-auth or username/password. The client then sends a request naming the destination and port, with the address expressed as IPv4, IPv6 or a domain name.

That last detail matters more than it looks. If the address is a domain name, the proxy resolves it, not your machine. That's what the socks5h:// scheme signals in curl and many libraries, as opposed to socks5://, which resolves locally and hands the proxy an IP.

Pro tip: If you're debugging a DNS leak, try both schemes. If socks5:// resolves locally and socks5h:// works, your client was leaking lookups even though the traffic itself was tunnelled.

The protocol descends from RFC 1928 and has stayed largely frozen since then, which is part of its appeal: a 1990s client and a 2026 server still interoperate. One part is under pressure, though. An IETF draft from April 2026 proposes removing the FRAG field entirely, on the grounds that fragmentation support is barely implemented and the field creates a resource-exhaustion surface. In practice, don't rely on SOCKS5 fragmenting datagrams for you.

SOCKS5 vs HTTP proxies: which should you use?

Use SOCKS5 when the application speaks raw TCP or UDP and you need any-port relaying; use an HTTP(S) proxy when you need header control, caching, or configuration that a browser or OS picks up without extra software.

The gap is narrower than folklore suggests. An HTTPS proxy uses the CONNECT method, which is also a blind byte tunnel: once established, the proxy can't read your TLS. The real differences are operational.

SOCKS5 HTTP/HTTPS proxy
Understands the protocol No, relays bytes Yes for HTTP; blind tunnel for CONNECT
Transports TCP, optional UDP TCP only
Ports Any destination port the provider allows Usually 80/443, CONNECT often restricted to 443
DNS Proxy can resolve (with socks5h) Proxy resolves for plain HTTP; client resolves before CONNECT
Authentication None or username/password Basic, digest, NTLM, or IP allowlisting
Best fit Apps, mail, SSH, UDP workloads, non-web protocols Browsers, caching layers, header manipulation, corporate filtering

Note: Some providers serve SOCKS5 and HTTP on the same port. Webshare does this, which means one hostname and port can serve both an app that speaks SOCKS5 and a browser that only takes HTTP.

If your only requirement is a browser pointing at a different egress IP, an HTTP proxy is simpler. If you need a mail client, an SSH session or a game launcher routed through the same endpoint, SOCKS5 is the only one of the two that will do it.

Does SOCKS5 support UDP?

The protocol supports UDP through the UDP ASSOCIATE command, but whether you get it depends entirely on the provider's implementation. SOCKS5 is TCP-only at many vendors, and TCP-only on specific product lines even where UDP exists elsewhere.

Mechanically, the client asks the server for a UDP relay address and port. Datagrams sent to that relay are wrapped with a small SOCKS5 header carrying the destination, then unwrapped and forwarded. Because the relay is stateful, it needs to know when to expire, which is why providers often limit UDP to specific destination ports or require support to switch it on.

Provider behaviour varies sharply:

  • Oxylabs carries UDP on its residential network through both SOCKS5 UDP and MASQUE (CONNECT-UDP) on separate endpoints, each enabling native HTTP/3.
  • TrueProxies added UDP over SOCKS5 on residential plans, announcing it in October 2026. Port 1080 accepts UDP ASSOCIATE and relays only to destination ports 443 and 53, included at no extra cost on Unlimited Bandwidth plans, the free trial, and Residential IPv4 Standard and Premium packs, but not on Residential IPv4 Lite or Datacenter IPv6.
  • NodeMaven serves residential and mobile SOCKS5 as TCP-only, with UDP available on its ISP/static product.
  • Rayobyte SOCKS5 proxies don't support inbound UDP, though its residential proxies carry UDP and HTTP/3 via SOCKS5 UDP.
  • DataImpulse offers UDP, but you have to contact support to enable it manually.

Failure modes differ too. Some servers return an explicit unsupported-command error (code 0x07) when asked to associate UDP; others simply close the connection. Both look identical from an application that doesn't log the SOCKS5 reply code.

If your workload is QUIC, HTTP/3, DNS-over-UDP or real-time media, verify UDP with a packet capture rather than trusting a feature list.

How much does a SOCKS5 proxy cost?

Expect roughly $1–$4 per IP per month for static SOCKS5 addresses from vendors such as Proxy-Seller, IPRoyal and Webshare; rotating residential SOCKS5 is instead priced per gigabyte by monthly volume.

That split drives everything else about the purchase.

Plan type Pricing model Typical entry point Best for
Shared datacenter Per IP Lowest end of the $1–$4 band Testing, light automation, non-sensitive routing
Private/dedicated Per IP Upper end of the band Workloads needing a stable, exclusive egress IP
ISP/static residential Per IP, higher Above the band Sessions where the address must look residential and stay fixed
Rotating residential Per GB Volume-based Workloads that need many short-lived egress points
Mobile Per GB, premium Highest Cases where only carrier IPs will do

Two pricing quirks are worth knowing before you compare quotes. First, SOCKS5 itself sometimes costs extra and sometimes doesn't: Byteful includes SOCKS5 over TCP and HTTP(S) via CONNECT in the base price on all four of its proxy types, and its ISP and datacenter SOCKS5 lines come with unlimited bandwidth, so tunnelling adds no per-GB charge. Elsewhere, SOCKS5 can be an add-on.

Second, the per-GB model punishes UDP workloads quietly. A TCP request-response cycle moves kilobytes; a video or QUIC session moves megabytes, and every one of them counts. If UDP is the reason you want SOCKS5, a per-IP plan with generous bandwidth nearly always beats a per-GB plan.

Which ports and destinations do SOCKS5 providers restrict?

Many providers do restrict them, and those restrictions cause more failed connections than any protocol detail. Two lists matter: destination ports you may reach, and domains the provider blocks outright.

  • Bright Data doesn't support non-standard ports; residential SOCKS5 works only for HTTPS targets, datacenter and ISP proxies allow SOCKS5 on ports above 1024, and supported mobile ports are 8080, 8443, 5678, 1962, 2000, 4443, 4433, 4430 and 4444.
  • Decodo residential and mobile proxies allow destination ports 80 and 443 by default, while ISP and datacenter additionally support 563, 8443 and 43. Its residential and mobile SOCKS5 also require a backconnect proxy rather than a direct endpoint.
  • ProxyEmpire opens 80 and 443 by default and requires review and approval for anything else, and blocks financial, government, banking, payment, crypto and certain entertainment services by default, naming PayPal, Stripe, banks, crypto exchanges, EA and Netflix as examples.
  • Webshare restricts ports 25, 110, 465 and 587 to prevent email spam, but allows both protocols on one port and supports automatic or manual SOCKS5 rotation.
  • IPRoyal restricts certain domains on residential proxies, including login.yahoo.com and linkedin.com, a restriction you can lift by confirming identity in the dashboard.
  • NodeMaven serves SOCKS5 on port ranges 1080–2080 and 42000–43000, with HTTP on 8080–9080 and 32000–33000.

Warning: Port 1080 is a convention, not a guarantee. Plenty of providers assign SOCKS5 to high ephemeral ranges, and some block port 25 and other mail ports entirely. Always test your exact destination port before committing to a monthly plan.

The pattern: providers selling cheap bandwidth restrict aggressively, while providers selling per-IP access restrict less but charge more. Neither is dishonest, they're optimising for different abuse profiles.

How do you connect through a SOCKS5 proxy?

You connect by pointing the application at the proxy's host and port and supplying credentials if required. The steps are the same whether the endpoint is a single static IP or a rotating backconnect gateway.

  1. Collect the endpoint details: hostname, port, and username/password if authentication is enabled. Static plans often authorise by IP instead.
  2. Test the tunnel before configuring anything else. With curl, curl --proxy socks5h://user:pass@host:port https://ifconfig.me returns the exit IP if the path works.
  3. Confirm the SOCKS5 reply code if the connection fails. Code 0x07 means the command or protocol isn't supported, which usually signals a UDP request against a TCP-only endpoint.
  4. Configure the application. Firefox has a native SOCKS5 field under network settings; most other browsers follow OS-level proxy settings or need an extension.
  5. Verify DNS behaviour. Prefer remote resolution so lookups don't leak around the tunnel.
  6. If you need UDP, test with the actual protocol rather than assuming. A TCP test proves nothing about UDP ASSOCIATE.
  7. Record the exit IP and compare it against the provider's stated range, so you notice if traffic silently falls back to a direct route.

Note: Sticky sessions matter here. DataImpulse rotates per request by default and supports sticky sessions up to 120 minutes, with postal-code-level IP filtering. If your app keeps a login session open, per-request rotation will break it.

Should you use a shared or private SOCKS5 proxy?

Choose private (dedicated) SOCKS5 when the destination needs a consistent egress IP and you want exclusive use of that address; choose shared when cost is the constraint and short-lived connections are acceptable.

The distinction is about who else holds the address. On a shared plan, other customers route through the same IP, so anything the address does is attributed to all of you collectively. That's fine for latency testing, geo-checks and read-only tasks. It's not fine when a session has to persist or when the destination treats the IP as an identity.

Private IPs cost more per unit, but the price band stays narrow at the low end (roughly $1–$4 per IP per month), so the jump from shared to dedicated is usually smaller than the jump from datacenter to residential.

Limitations

SOCKS5 will not encrypt your traffic. It's a relay, not a tunnel with confidentiality. If you're on an untrusted network, run HTTPS or a VPN inside or alongside it.

It also won't fix a provider's restrictions. If a destination port is closed, no client configuration opens it. If a domain is blocked at the provider, you get a refusal, not a workaround, and you should read that as the provider telling you the plan isn't the right product.

UDP support is genuinely inconsistent. A provider might support UDP on residential but not datacenter, on static but not rotating, on port 443 but not 53. If UDP is central to your workload, budget time for a trial rather than trusting documentation.

Fragmentation is a dead end. The April 2026 draft to remove the FRAG field reflects reality: almost nothing implements it, and you shouldn't design around it.

Finally, SOCKS5 is the wrong tool for anything needing content inspection, caching, header rewriting or per-URL policy. Those are HTTP proxy functions. If you need centralised filtering with logging, a forward proxy or secure web gateway does the job properly.

Frequently asked questions

Is SOCKS5 the same as a VPN?

No. A VPN operates at the network layer and typically encrypts all traffic from the device, while SOCKS5 relays individual connections from individual applications. A VPN changes your IP for everything; a SOCKS5 proxy changes it only for the app you configure, and adds no encryption of its own.

Does a SOCKS5 proxy hide my IP address?

The destination server sees the proxy's IP instead of yours, so yes from the server's point of view. Your ISP still sees a connection to the proxy host, just not the destination. Anyone who can observe both ends can correlate them, which is why SOCKS5 alone isn't anonymity.

What port does SOCKS5 use?

Port 1080 is the conventional default, and it's what most examples assume. In practice providers assign whatever they like: NodeMaven uses 1080–2080 and 42000–43000 for SOCKS5, and others hand out high ports per plan. Always use the port in your dashboard.

Can I use SOCKS5 in a normal browser?

Firefox supports SOCKS5 natively, including remote DNS, through its connection settings. Chrome and Edge rely on the operating system's proxy configuration, which on some platforms doesn't include SOCKS5 authentication, so extensions or an OS-level helper are often needed.

What's the difference between SOCKS4 and SOCKS5?

SOCKS5 adds username/password authentication, IPv6 addressing and UDP support, none of which SOCKS4 has. SOCKS4 is TCP-only with IPv4 and a user-ID field that isn't real authentication. If a provider still offers SOCKS4, it's for legacy compatibility, not performance.

Next step

Before you buy, write down the one destination port and protocol your workload actually needs, then ask the provider to confirm both in writing. A five-minute test with curl and a UDP probe against a trial endpoint will tell you more than any feature page.

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

Scroll to Top