Skip to content

SOCKS5 residential proxies

SOCKS5 is a general-purpose proxy protocol that carries any TCP connection, not only web requests. hyperproxy accepts SOCKS5 on the same endpoint and port as HTTP, with the same login, targeting and sessions.

Updated 9 November 2026

What SOCKS5 is

SOCKS5, defined in RFC 1928, works one layer below HTTP. Your client tells the proxy “connect me to this host and port”, authenticates (on hyperproxy with a username and password, as in RFC 1929), and from then on the proxy simply relays bytes in both directions. It never parses the traffic, so it does not matter whether that traffic is HTTP, TLS, SMTP, a database protocol or something custom.

An HTTP proxy, by contrast, speaks HTTP to your client. For plain http:// URLs it reads and forwards each request; for https:// it opens a tunnel with the CONNECT method. For web traffic the end result is very similar. The longer comparison is in SOCKS5 vs HTTP proxy.

A SOCKS5 residential proxy is simply SOCKS5 where the exit is a residential connection: the target sees a home ISP address rather than a datacenter one.

SOCKS5 on hyperproxy

Value
Hostgw.hyperproxy.io
Ports8888 or 1080
Protocols on that portHTTP, HTTPS (CONNECT) and SOCKS5, detected per connection
AuthenticationUsername and password (required)
TargetsDomain names or IPv4 addresses
UDPNot available (no UDP ASSOCIATE)

Because the protocol is detected per connection, you do not need a separate SOCKS login or port. Port 1080, the conventional SOCKS port, behaves exactly like 8888, which helps with tools that assume it. All the details are on the endpoints page.

SOCKS5 URL
socks5h://USER:PASS@gw.hyperproxy.io:8888

socks5h vs socks5: resolve DNS on the proxy

Most clients accept two URL schemes, and the difference is easy to miss:

  • socks5:// resolves the hostname on your machine, then asks the proxy to connect to the resulting IP.
  • socks5h:// sends the hostname to the proxy, and the exit resolves it.

Use socks5h://. With local resolution, a geo-aware DNS service answers for your location, not the exit's, so a request “from Germany” can land on a server picked for the US. Your local resolver also sees every hostname you visit. Remote resolution keeps DNS consistent with the exit IP. Some libraries, such as Go's standard net/http, only accept socks5:// in the URL; Go sends the hostname to the proxy anyway, so it behaves like socks5h.

Examples

Each example prints the exit IP. Replace USER and PASS with a proxy login from the dashboard.

curl -x socks5h://USER-cc-us:PASS@gw.hyperproxy.io:8888 https://api.ipify.org

For more on curl, including how to test targeting from the command line, see curl & SOCKS5. The axios guide and Python requests guide cover HTTP and SOCKS5 side by side.

Targeting and sessions work the same

Options live in the username, so they are protocol-independent. Everything from the targeting docs applies to SOCKS5:

shell
# Rotating, exits in France
curl -x socks5h://USER-cc-fr:PASS@gw.hyperproxy.io:8888 https://api.ipify.org

# Sticky for 30 minutes, Berlin
curl -x socks5h://USER-cc-de-city-berlin-session-k7x2-ttl-30:PASS@gw.hyperproxy.io:8888 https://api.ipify.org

Without a session, each new SOCKS5 connection gets a fresh exit, as described on rotating residential proxies. With a session id, every connection that carries it uses the same exit; see sticky session proxies.

When to choose SOCKS5

  • Non-HTTP TCP protocols. Anything that is not HTTP, such as a custom TCP client or a protocol your tool does not tunnel through CONNECT, needs SOCKS5.
  • Tools that only speak SOCKS. Some network tools, wrappers such as proxychains and application-wide proxy settings expect a SOCKS server.
  • Remote DNS by default. With socks5h the exit resolves every name, which keeps location-dependent DNS consistent.
  • One configuration for mixed traffic. A single SOCKS5 setting can cover every connection an application makes.

Stay with HTTP when your client supports it natively and you only fetch web pages. Python requests, Scrapy and most headless browsers handle HTTP proxies with no extra packages, and Chromium-based browsers do not support SOCKS5 authentication with a username and password, so for Playwright and Puppeteer use the HTTP form of the same endpoint.

Limits to know

  • No UDP. UDP ASSOCIATE is not available, so UDP-based protocols such as QUIC/HTTP3, DNS over UDP or games will not work through the proxy. HTTP clients fall back to TCP automatically.
  • Authentication is required. Clients that only support unauthenticated SOCKS5 cannot connect.
  • SOCKS5 is not encryption. The SOCKS handshake, including your proxy credentials, travels in plain text to the gateway. The traffic inside is encrypted only if the protocol you run through it is, for example HTTPS.

Billing is the same as for HTTP: bytes in both directions from your prepaid balance, with no per-thread caps.

FAQ

Is SOCKS5 faster than an HTTP proxy?

Not meaningfully for web traffic. Both relay an encrypted HTTPS stream once the tunnel is set up. The exit's connection and the target's response time matter far more than the protocol.

Which port should I use for SOCKS5?

Either 8888 or 1080. Both accept HTTP, HTTPS CONNECT and SOCKS5.

Why do I get the wrong country with SOCKS5?

You are probably using socks5://, which resolves DNS locally. Switch to socks5h:// so the exit resolves the hostname.

Does Python requests support SOCKS5?

Yes, with the optional extra: pip install "requests[socks]". Then pass a socks5h:// URL in proxies.

Can I use SOCKS5 in Chrome, Playwright or Puppeteer?

Chromium does not support SOCKS5 with username and password authentication, so use the HTTP proxy URL on the same endpoint. Targeting and sessions are identical.

What does a SOCKS5 error look like?

The gateway answers with a SOCKS5 reply code: an authentication failure for bad credentials or options, 0x04 when no exit matches your targeting, and so on. The errors page maps each one to its HTTP equivalent.

Try it on your own workload

Sign up with GitHub or Google, create a proxy login and send your first request in a minute.

More residential proxy types