SOCKS5 is a standard way for an app to talk to a proxy, and it adds no encryption. Shadowsocks is an encrypted connection to a remote server that looks like a SOCKS5 proxy to the apps on your device. If you have a login for residential proxies, you want SOCKS5 or HTTP. If you run or rent a Shadowsocks server, you need a Shadowsocks client.
The two get mixed up because Shadowsocks borrows from SOCKS5. Here is what each one does.
What SOCKS5 does
SOCKS5 is defined in RFC 1928. An app connects to the proxy, logs in if the proxy asks for it, and says which address it wants to reach. The proxy opens that connection and passes the data in both directions without reading it.
That makes it flexible. SOCKS5 works for web traffic, email, databases and chat apps, and it can handle UDP as well as TCP when the proxy supports it. It is also widely supported: browsers, curl, Telegram and most scraping libraries have a SOCKS5 option built in. Our comparison of HTTP and SOCKS5 proxies covers which of those two to pick.
What it does not do is hide the traffic between you and the proxy. An HTTPS page stays encrypted from your browser to the website, but anyone watching your connection can see that you are using a SOCKS5 proxy, and can read the proxy login.
What Shadowsocks does
The Shadowsocks project describes it as “a secure split proxy loosely based on SOCKS5”. Split is the important word. It has two halves:
- ss-local runs on your device and acts like an ordinary SOCKS5 server. Your apps connect to it.
- ss-remote runs on a server somewhere else. It receives the encrypted data from ss-local, decrypts it and connects to the website.
Both halves share a password and an encryption method. The project recommends AEAD ciphers such as chacha20-ietf-poly1305 or aes-256-gcm, and says the older stream ciphers are deprecated. A basic client configuration is short:
{
"server": "my_server_ip",
"server_port": 8388,
"local_port": 1080,
"password": "your_password",
"method": "chacha20-ietf-poly1305"
}
With that running, an app pointed at 127.0.0.1 port 1080 sends its traffic through the remote server.
Shadowsocks Android and iOS apps
On a phone you need an app for the client half. The project lists these:
| Phone | App named by the project | What you need |
|---|---|---|
| Android | shadowsocks-android | Server address, port, password and cipher |
| iPhone and iPad | meow | The same details, or an ss:// link or QR code |
Shadowsocks iOS and Android apps are only clients. Without a server to connect to, they do nothing, so be careful with free lists of shared servers: whoever runs one can see which sites you open.
Side by side
| SOCKS5 | Shadowsocks | |
|---|---|---|
| What it is | A standard proxy protocol | An encrypted split proxy |
| Encryption to the proxy | None | Yes |
| Works in apps directly | Yes, where SOCKS5 is supported | Through a local client |
| Login | Username and password, or none | Shared password and cipher |
| UDP | Possible, if the proxy supports it | Yes, in the main implementations |
| Who runs the server | Usually a provider | Usually you, or a service you rent |
| Exit IP | Whatever the provider sells | The server’s IP, often a data center |
Which one to use
Use SOCKS5 when the exit IP matters. Price checks, ad checks, scraping and testing a site from another country all depend on the kind of IP the website sees. A provider gives you many IPs and lets you choose a location. Shifter’s residential plans use the same endpoint for HTTP(S) and SOCKS5, and UDP works too on the Full Geo pool.
Use Shadowsocks when the connection to the server matters. It encrypts the stretch between your device and a server you trust, which is useful on a network you do not. Websites will see that server’s single address, so it does not help if you need many IPs or a home connection.
Neither makes you anonymous. The website still sees your browser, cookies and logins, and whoever runs the server can see which sites you connect to. Check the rules where you are, too: some countries restrict tools like Shadowsocks.
Common mix-ups
- Putting SOCKS5 details into a Shadowsocks app. It will not connect. The app expects a Shadowsocks server, a password and a cipher.
- Expecting SOCKS5 to encrypt. Use HTTPS websites, and avoid typing passwords into plain HTTP pages.
- Leaving DNS on your own connection. Many tools look up the website’s address locally unless told otherwise. In curl, use
socks5h://instead ofsocks5://so the proxy does the lookup.
In short
SOCKS5 is how an app talks to a proxy. Shadowsocks is an encrypted tunnel to one server that happens to offer your apps a SOCKS5 door. Choose by what you need: a choice of exit IPs, or an encrypted route to a server you control.