socks5://
- Who resolves the hostname
- Your machine (in curl and Python requests)
- Effect
- DNS queries leave from your own network; the proxy only receives an IP
SOCKS5 is a general-purpose proxy protocol that relays a connection between a client and any host and port, without understanding the traffic inside it. Because it works below HTTP, it can carry web traffic as well as mail, SSH or database connections.
SOCKS5 is defined in RFC 1928. The client opens a TCP connection to the proxy, the two agree on an authentication method, and the client asks the proxy to connect to a destination. From then on the proxy copies bytes in both directions without reading them.
The protocol also defines BIND and UDP ASSOCIATE commands, but support for them varies, and many proxy services relay TCP only.
0x00 (none) and 0x02 (username and password).0x02, the client sends a username and password as defined in RFC 1929. They are sent unencrypted to the proxy.CONNECT command with the destination as an IPv4 address, an IPv6 address or a domain name, plus a port.SOCKS5 is the option for software that does not support HTTP proxies, such as some desktop apps, mail clients, SSH and database tools, and it is offered by many anti-detect browsers. For HTTPS websites it gives no extra privacy over an HTTP proxy: both relay an encrypted TLS connection they cannot read. The SOCKS5 vs HTTP proxies guide compares them in detail.
curl --proxy socks5h://USERNAME:PASSWORD@HOST:PORT https://api.ipify.orgThe request can name the destination as an IP address or as a hostname. That choice decides who resolves DNS, and most tools expose it through the scheme of the proxy URL.
socks5://socks5h://http:// proxyLocal resolution causes a DNS leak: your own resolver sees every domain you visit, and a geo-routed domain can resolve to a server for the wrong region. Use socks5h:// unless you have a reason not to.
At CleanProxies, SOCKS5 is available on static ISP proxies and ISP subnet proxies: switch the order to SOCKS5 in the dashboard and keep the same username and password. Rotating residential and mobile proxies use an HTTP(S) gateway.
The CleanProxies proxy that fits best here, with a $4.99 trial to test it first.
Dedicated IPs on US carrier ASNs with unlimited bandwidth and threads, never shared.
Dedicated static IPs registered to US and Canadian ISPs. The address stays the same for as long as you hold it, with unlimited bandwidth and HTTP(S) or SOCKS5 access.
Setup guides and best practices from the CleanProxies blog.
Terms that come up alongside SOCKS5.
Straight answers about SOCKS5.
With socks5 the client resolves the hostname itself and sends the proxy an IP address. With socks5h the hostname is sent to the proxy and resolved there, so DNS lookups do not leave from your own network.