Using SOCKS5 instead of HTTP
When to choose SOCKS5 over HTTP, how to switch a proxy's protocol, and how to test it and avoid common mistakes.
Updated 2 min read
Every proxy works with HTTP and with SOCKS5 at the same time, on the same port. HTTP is the usual choice, and it still reaches https websites through an encrypted tunnel. Choose SOCKS5 when your tool or bot only speaks SOCKS5.
Find the port
Open the proxy in the dashboard. On its connection card, the Protocol line shows the port. That port takes HTTP and SOCKS5, whichever protocol the line names. You do not need to change anything on the proxy. Set your tool to SOCKS5 and use that port.
Test it with curl
curl -x "socks5h://USERNAME:PASSWORD@HOST:PORT" https://api.ipify.org
Use the values from the proxy's page. The socks5h:// form lets the proxy look up the website's name for you. If it prints an IP address, SOCKS5 works.
Common mistakes
- The tool saves proxies as SOCKS5 by default. Some tools do this when you leave out the type. Write
http://orsocks5://at the start of each proxy line, so the type is clear. - The wrong port. Use the port on the Protocol line of the proxy's page, for HTTP and for SOCKS5 alike.
- A browser. For everyday browsing, HTTP is the simpler choice. Our browser setup guide uses HTTP.
If it still does not connect, see When the proxy will not connect.