The essential points from this guide -- each one is explained in detail below.
SOCKS5 tunnels any TCP/UDP traffic, not just HTTP.
It supports authentication and IPv6 (unlike SOCKS4).
Use SOCKS5 when your application needs non-HTTP proxy support.
For standard web scraping, HTTP proxies are simpler and equally effective.
HTTP proxies parse and understand web requests. They can modify headers, cache responses, and filter content. SOCKS5 proxies operate at the transport layer -- they create a tunnel and pass raw packets without inspecting them. This protocol-agnostic approach means SOCKS5 supports any TCP or UDP application: SSH, FTP, database connections, game clients, VoIP, and custom protocols.
SOCKS5 supports multiple authentication methods defined in RFC 1929. The most common is username/password authentication. The client sends credentials during the SOCKS handshake, before any application data flows. This is separate from HTTP proxy authentication (Proxy-Authorization header) and happens at the socket level.
Python with requests and PySocks:
import requests
proxies = {
"http": "socks5://USER:PASS@gw.knoxproxy.com:7001",
"https": "socks5://USER:PASS@gw.knoxproxy.com:7001"
}
r = requests.get("https://example.com", proxies=proxies)Node.js with socks-proxy-agent:
const { SocksProxyAgent } = require("socks-proxy-agent");
const agent = new SocksProxyAgent("socks5://USER:PASS@gw.knoxproxy.com:7001");
const res = await fetch("https://example.com", { agent });Ready to put this into practice? Browse SOCKS5 Proxies
KnoxProxy Research Team · Technical Content
Network engineers and proxy infrastructure specialists with 10+ years in anti-bot systems, web scraping, and IP routing.
90.4M+ ethically sourced residential IPs across 195 countries. Start free -- no credit card required.