All locations active · 99.99% uptime
SOCKS5

The Difference Between SOCKS4 and SOCKS5

You still see plenty of SOCKS4 addresses on free proxy lists. The fact that the protocol dates from the early 1990s does not make it useless — but the three innovations SOCKS5 brought are decisive for most of today's needs: authentication, UDP and remote DNS.

FIGUREThe structure of a SOCKS5 connection request
PROTOCOLVER1 byte0x05CMD1 byteCONNECT / BIND / UDP ASSOCIATERSV1 bytereservedATYP1 byteIPv4 / domain name / IPv6ADDRvariabledestination addressPORT2 bytesdestination port

ATYP field can carry the domain name directly, so DNS resolution is performed by the proxy. SOCKS4 has no such field; you have to resolve the address yourself.

Version Comparison

FIGUREThe capabilities of the SOCKS versions
VERSIONSOCKS5SOCKS4 / 4aAuthenticationUsername/password, GSSAPIuserid onlyUDP supportYesNoneIPv6YesNoneRemote DNSYesAvailable in 4aYear released19961992Support todayWidespreadDeclining

SOCKS4a is an extension of SOCKS4 that can carry domain names; apart from that it is identical to SOCKS4.

Why Does Remote DNS Matter?

When you use SOCKS4, the target domain name is resolved by your own computer . That means the DNS query for ornek.com goes to your own ISP and is recorded there. The proxy only connects to the resolved IP. The result: your IP is hidden, but which sites you visit is not.

FIGUREWho resolves the DNS query?
LEAKSOCKS5 (remote DNS)The domain name is sent to the proxyResolution is performed on the proxy sideYour ISP does not see the destinationThe DNS leak test comes back cleanSOCKS4 (local DNS)The domain name is resolved locallyThe query goes to the ISP resolverYour browsing history stays with the ISPA DNS leak is unavoidable

You can measure your own situation with the DNS leak test . If you use SOCKS5, make sure the "remote DNS" option is enabled in your client.

When Do You Need UDP Support?

Because web browsing runs entirely over TCP, the absence of UDP goes unnoticed. The difference shows up in these jobs: voice/video calls (Discord), online games, tunneling DNS directly, and torrent DHT. SOCKS4 cannot be used for these.

What Should You Do in Practice?

  • When choosing an address from the list, give priority to the ones tagged SOCKS5 .
  • If all you have is a SOCKS4 address, at least test whether it supports SOCKS4a .
  • If you have a corporate address that requires a username/password, it is already SOCKS5; SOCKS4 does not carry authentication.
  • If your client offers a "SOCKS5h" option, choose it — the trailing h, indicates that hostname resolution will be performed remotely.

To find out which version the address you have speaks, our Proxy Checker tool detects it automatically: you will see SOCKS5 or SOCKS4 in the protocol field.

Frequently Asked Questions

01What happens if I configure a SOCKS4 address as SOCKS5?

The handshake fails and no connection is established. The client usually returns a "handshake failed" or timeout error.

02What is the difference between SOCKS5h and SOCKS5?

SOCKS5h forces domain name resolution to be performed on the proxy side. In tools such as curl, the socks5h:// scheme selects this behavior.

03Does SOCKS5 encrypt traffic?

No. SOCKS only relays; encryption is the application's responsibility. As long as you use HTTPS, the content is protected.

Related Articles and Pages

NEXT STEP

Strengthen your proxy setup today.

Get started in minutes with a paid plan, or try our free proxy list first.

FREEPROXY.TR

Looking for a free proxy? You're in the right place

A complete proxy platform where you can browse up-to-date free proxy addresses, compare HTTP and SOCKS proxy types, and check your proxy connections with free tools.