SOCKS5 (SOCKS5)
SOCKS5 is version 5 of the SOCKS proxy protocol. It defines method negotiation, destination addressing and relay commands, allowing compatible clients to request connections through a SOCKS server.
Explanation
What happens before application data?
RFC 1928 describes a client connecting to the SOCKS server, offering authentication methods, completing the selected method and submitting a relay request. The destination address can be IPv4, IPv6 or a domain name. The server returns a SOCKS reply before the application exchange proceeds.
This is not the HTTP 407 challenge mechanism. A tool that reports a rejected SOCKS method needs a protocol and authentication check; adding an HTTP authentication header to the destination request does not repair that negotiation.
Check commands rather than a marketing label
The specification includes CONNECT, BIND and UDP ASSOCIATE. A particular service or client can impose implementation and policy limits, so verify the command your task uses. SOCKS5 support in a selector alone is insufficient evidence that the account allows UDP.
Port 1080 is conventional in RFC 1928, not a reason to replace an assigned service port. An illustrative TCP request can ask the proxy to reach a domain on port 443, but the service must allow that destination.
DNS and encryption need separate checks
In curl, socks5 resolves the destination locally, while socks5h passes its hostname to the proxy. Other clients require their own documented settings. RFC 1929 also warns that its username/password subnegotiation carries the password in cleartext. HTTPS inside the later relay does not retroactively protect that earlier exchange.
Further reading
- How to Set Up SOCKS4 and SOCKS5 Proxies: A Beginner's Step-by-Step Guide
- What Is a SOCKS5 Proxy? SOCKS4 vs. SOCKS5 Explained
- How to Test HTTP Proxy Availability: A Step-by-Step Guide for Beginners
References
- RFC 1928: SOCKS Protocol Version 5
- RFC 1929: Username/Password Authentication for SOCKS V5
- everything curl: SOCKS proxy
Sources checked on November 19, 2026. Scenarios and numerical examples explain the concepts; they are not proxy performance measurements.
Frequently Asked Questions
No. Verify UDP ASSOCIATE support and policy in both the service and client.
No. RFC 1929’s username/password exchange sends the password in cleartext unless protected by another transport arrangement.
RFC 1928 explicitly does not provide network-layer gateway services such as ICMP forwarding.
The protocol name does not establish performance. Compare the same destination, workload and connection conditions.
No. Use the assigned endpoint port; 1080 is a conventional service port.