AnyProxy

Get Pro
Glossary · Core proxy

SOCKS proxy

Also calledsocks5 proxysocks proxy meaningwhat is socks5
Definition

A SOCKS proxy relays raw network connections for any app without understanding what is inside them; SOCKS5 can also carry UDP.

Explanation

In depth

SOCKS was created to let programs other than web browsers cross company firewalls: chat clients, games, custom TCP services. An HTTP proxy reads requests; a SOCKS proxy just opens the connection your app asks for and copies bytes in both directions. SOCKS5 added login, UDP relaying, IPv6 and the option to let the proxy look up host names, so DNS queries leave from the proxy instead of your device. It encrypts nothing by itself. Firefox has its own SOCKS setting, Chrome uses the system proxy settings, and Tor's client exposes a local SOCKS5 port that browsers and apps connect to. Because it does not understand HTTP, a SOCKS proxy cannot cache or filter pages, which is the price of carrying anything. In practice the choice is simple. To route a whole app such as a game, a torrent client or a chat program, you need SOCKS (or a VPN). To open web pages in a browser, an HTTP proxy or a web proxy fits better. AnyProxy is a web proxy, not a SOCKS server: it carries pages opened in its browser tab and nothing else.

In practice

SOCKS proxy in the real world

SOCKS5 was published as RFC 1928 in 1996 and usually runs on port 1080. It forwards any TCP connection, and UDP through its UDP ASSOCIATE command, without understanding HTTP. A common do-it-yourself version is SSH's -D option, which turns an SSH login into an encrypted local SOCKS proxy: the hop to the SSH server is encrypted by SSH, not by SOCKS.

Sources: RFC 1928 - SOCKS Protocol Version 5

Questions about SOCKS proxy

Is SOCKS5 encrypted?
No. SOCKS5 only relays connections. Encryption comes from the app itself (for example HTTPS) or from carrying SOCKS inside SSH or another tunnel.
Does SOCKS5 stop DNS leaks?
Only if the app asks the proxy to resolve names (in Firefox, the "Proxy DNS when using SOCKS v5" option). Otherwise your device still looks up every site on your own network.
See alsoHTTP vs SOCKS comparison

Related terms

HTTP proxyAn HTTP proxy is a proxy that speaks the web's own protocol: it reads each request's address and headers and can filter, cache or log them.ProxyA proxy is a server that makes network requests for you and passes the answers back, so the site you reach deals with the proxy instead of your device.TorTor is a free network and browser that sends your traffic through three volunteer-run relays, each adding a layer of encryption, so no single relay knows both who you are and what you are visiting.DNSDNS is the system that turns a site name such as vimeo.com into the numeric IP address your device actually connects to.

Put the concept to work

Try AnyProxy free — no install, no signup, six regions.

Open a blocked page