Black Friday: 15% off residential proxies with code BF15 on orders from $10. Until December 1.Buy now →

SOCKS5 vs HTTP(S) proxy: which protocol to choose

How SOCKS5 differs from an HTTP(S) proxy, why socks5h:// matters, which Prokso ports to use and what to pick for browsers, scripts, apps and Telegram.

Prokso editorial team Updated 11 min read Guides
SOCKS5 vs HTTP(S) proxy: which protocol to choose
Key takeaways
  • An HTTP(S) proxy works with web requests and returns clear error codes; SOCKS5 relays any TCP connection without looking inside.
  • At Prokso, port 823 is HTTP and 824 is SOCKS5, both with a new IP on every request; ports 10000-20000 keep one IP for 1-120 minutes and accept both protocols.
  • For SOCKS5 in curl and Python, write socks5h:// so the proxy resolves the site name instead of your ISP's DNS server.
  • Browsers and scripts for websites: HTTP. Telegram and apps without an HTTP proxy field: SOCKS5.
  • Prokso proxies do not carry UDP on any port: messenger calls and online games do not work through them.

The Prokso generator offers two protocols: HTTP and SOCKS5. Both go through the same address, gw.prokso.com, with the same countries and the same price per gigabyte. The difference lies elsewhere: how an app talks to the proxy, who resolves the site's address and which apps can work with each protocol at all.

Below you will find a comparison table, the ports, the difference between socks5:// and socks5h://, curl and Python examples, and an answer to what to use for a specific task.

How SOCKS5 differs from an HTTP(S) proxy

An HTTP proxy works at the level of web requests. The app sends it an HTTP request: for an http:// site, the full page address; for an https:// site, a CONNECT command with the site name and port. The proxy opens the connection and then relays data. If something goes wrong, it answers with a regular HTTP code: 407 means it did not accept the login, 502 means it could not reach the site.

SOCKS5 works one level lower. The protocol is described in RFC 1928, and username and password authentication in RFC 1929. The app asks: "connect me to this host and port", and after that the proxy simply relays bytes in both directions. Whether those bytes are a web page, a messenger message or an API call makes no difference to it.

Hence the practical difference. Almost every browser, library and web tool understands HTTP proxies. SOCKS5 is needed where the traffic is not a web request or where the app simply has no field for an HTTP proxy.

HTTP(S) proxySOCKS5 proxy
Works withWeb requests (HTTP)Any TCP connection
https:// sitesThrough a CONNECT tunnel, the site encrypts the contentA regular connection, the site encrypts the content
Other appsOnly those that support HTTP proxiesMessengers and apps with a SOCKS5 field
Who resolves the site addressAlways the proxyThe proxy (socks5h) or your device (socks5)
AuthenticationUsername and password in the Proxy-Authorization header, or IP whitelistUsername and password per RFC 1929, or IP whitelist
ErrorsClear HTTP codes: 407, 502, 504Short reply codes without explanations
Encryption to the proxyNoNo
UDP at ProksoNoNo
Prokso port, new IP on every request823824
Prokso port, sticky IP10000-2000010000-20000

How a request travels, step by step

Here is what happens when a browser opens https://example.com through an HTTP proxy:

  • The browser connects to gw.prokso.com:823 and sends CONNECT example.com:443 along with a Proxy-Authorization header.
  • The proxy checks the login, connects to the site and replies "200 Connection established".
  • The browser and the site then perform the TLS handshake directly, and the proxy only relays encrypted bytes.

With SOCKS5 the picture is similar, but without HTTP:

  • The app connects to gw.prokso.com:824 and offers authentication methods; the proxy picks username and password.
  • The app sends a CONNECT command with the site name (socks5h) or an already resolved IP address (socks5), plus the port.
  • The proxy replies with a success or error code, and from then on bytes flow unchanged in both directions.

Both paths end the same way: the site sees the proxy's IP, not yours. The only difference is how the app asks for the connection and what it gets back when something goes wrong. That is why troubleshooting is easier over HTTP: a 407 or 502 tells you right away at which step the problem is.

What an HTTPS proxy is and why the https:// scheme fails

"HTTPS proxy" usually means an ordinary HTTP proxy that opens https:// sites through a CONNECT tunnel. Your app and the site negotiate encryption directly, and the proxy relays bytes that are already encrypted. It sees the site name, but not the pages, passwords or content.

The second meaning is a proxy that the app itself connects to over TLS. Prokso ports do not expect that: the line https://gw.prokso.com:823 ends with an SSL error before it ever reaches the site. For any site, http:// or https://, use the http:// scheme. More on this in the glossary entry on HTTPS proxies.

The leg between you and the proxy is not encrypted with either protocol. HTTP proxy credentials travel in a header in Base64, which is encoding, not encryption; with SOCKS5 they are also sent in the clear. If you would rather not send a password at all, use an IP whitelist: up to 5 addresses per plan, no login needed.

Prokso ports: 823, 824 and 10000-20000

All Prokso proxies work through one host, gw.prokso.com. The port selects the protocol and how the IP behaves:

PortProtocolIP behaviorGood for
823HTTPNew IP on every requestData collection, price checks, many independent requests
824SOCKS5New IP on every requestThe same for apps that need SOCKS5
10000-20000HTTP and SOCKS5Sticky IP on each port, 1-120 min (30 by default)Accounts, carts, logins, Telegram

A sticky port accepts both protocols, so the same IP can be used from a browser over HTTP and from a messenger over SOCKS5. The session duration is configurable. A residential or mobile IP can change earlier if the device goes offline: the port then gets a new address in the same country.

In the dashboard generator the modes are called "Rotating (new IP per request)" and "Sticky session". The generator fills in the right port and protocol for you. In advanced mode you can also pin an IP with a session number in the username; one address then holds for about 30 minutes on ports 823 and 824.

More details are on the SOCKS5 proxies and HTTP proxies pages, and the modes are explained in the glossary: rotating proxy and sticky session.

Username and password or IP whitelist

Both protocols at Prokso accept two ways to log in. The first is the plan's username and password: they go into the proxy line, and any app with a password field works this way. The second is an IP whitelist: you add up to 5 addresses to the plan's whitelist, and the proxy lets them in without a login.

The IP whitelist helps where an app cannot send a password. The typical case is SOCKS5 in a browser: Chrome will not send a password for SOCKS5, but with a whitelist no login is needed. The same goes for older apps and devices that only have "address" and "port" fields.

The downside is that your address has to be stable. If your home IP changes or you turn on a VPN, the proxy stops letting you in until you update the whitelist. How proxy authentication works in both protocols is explained in the glossary.

How to pick the protocol in the generator

In the dashboard generator, choose a country, a protocol and the IP mode. For HTTP the line will contain port 823 or a sticky port; for SOCKS5, port 824 or a sticky port. You do not need a separate plan per protocol: the same plan and the same traffic balance work with both.

The generator also adapts the line format: login:password@host:port, host:port:login:password, protocol://… and others. Pick the one your app understands and download the list as .txt. If you already have a list in another format, convert it with the proxy format converter.

socks5:// or socks5h://: who resolves the site address

Before connecting to a site, an app has to turn its name into an IP address. That is the job of DNS. With an HTTP proxy this is not a question: the app passes the site name to the proxy, and the proxy resolves it. SOCKS5 has two options, and your choice decides who sees your DNS queries.

In curl, Python requests and many other tools, the socks5:// scheme means your device resolves the name through your ISP's or router's DNS server, and the proxy receives a ready IP address. The socks5h:// scheme passes the name itself to the proxy, and the address is resolved on its side. The h stands for hostname. In curl the --socks5-hostname option does the same.

socks5://socks5h://
Who resolves the site addressYour deviceThe proxy
Who sees the site nameYour DNS server and the proxyOnly the proxy
Which site server the CDN picksOften the one closest to youThe one closest to the proxy exit
When it makes senseRarely: if the app cannot do otherwiseThe default choice for Prokso

The telltale sign: the site opens through the proxy, but a DNS test shows your ISP's DNS server. That is a DNS leak. The fix is to replace socks5:// with socks5h://. In apps with a SOCKS5 field, look for an option like "resolve names through the proxy"; in Firefox it is called "Proxy DNS when using SOCKS v5".

Examples: curl and Python

Replace LOGIN and PASSWORD with the details from the generator. The api.ipify.org service returns the IP the request came from, which should be the proxy's address, not yours.

# HTTP proxy, new IP on every request
curl -x http://LOGIN:PASSWORD@gw.prokso.com:823 https://api.ipify.org

# SOCKS5, the proxy resolves the site name (socks5h)
curl -x socks5h://LOGIN:PASSWORD@gw.prokso.com:824 https://api.ipify.org

# for comparison: socks5:// - the name is resolved by your own device
curl -x socks5://LOGIN:PASSWORD@gw.prokso.com:824 https://api.ipify.org

# sticky IP: take a port from 10000-20000 in the generator
curl -x http://LOGIN:PASSWORD@gw.prokso.com:10001 https://api.ipify.org

Run the command twice. On ports 823 and 824 the IP should change; on a sticky port it should stay the same. If curl returns an error code, look it up on the curl error codes page.

Python requests only supports SOCKS5 with an extra package: pip install "requests[socks]". Without it the library reports missing dependencies; see Missing dependencies for SOCKS support.

import requests

# HTTP proxy: the same line for http:// and https:// sites
http_proxy = "http://LOGIN:PASSWORD@gw.prokso.com:823"
r = requests.get("https://api.ipify.org",
                 proxies={"http": http_proxy, "https": http_proxy}, timeout=30)
print("HTTP:", r.text)

# SOCKS5 with DNS on the proxy side (needs: pip install "requests[socks]")
socks_proxy = "socks5h://LOGIN:PASSWORD@gw.prokso.com:824"
r = requests.get("https://api.ipify.org",
                 proxies={"http": socks_proxy, "https": socks_proxy}, timeout=30)
print("SOCKS5:", r.text)

In the proxies dictionary, the key is the site's scheme and the value is the proxy line. If you leave out the "https" key, https:// sites go direct, bypassing the proxy, and you will see your own IP. More examples are in the guides for curl and Python requests.

What to choose: browsers, scripts, apps, Telegram

TaskProtocolPortWhy
Chrome, Edge and extensionsHTTP823 or 10000-20000Chrome does not send a password for SOCKS5; HTTP works with username and password
FirefoxHTTP or SOCKS5823, 824 or 10000-20000SOCKS5 in Firefox only with an IP whitelist; turn on Proxy DNS
Antidetect browserHTTP or SOCKS510000-20000One profile, one sticky IP; most such browsers accept both protocols
Scripts and scrapers: curl, Python, Node.jsHTTP823 or 10000-20000Easier to set up, clear error codes
Apps without an HTTP proxy fieldSOCKS5824 or 10000-20000The app only supports SOCKS5 or the traffic is not web requests
TelegramSOCKS510000-20000Telegram supports SOCKS5 on phones and desktops; an account needs a stable address
Calls, online games--They need UDP, and Prokso proxies do not carry it

The general rule is simple. If the app supports HTTP proxies and you are working with websites, use HTTP: fewer settings and clearer errors. If the app only supports SOCKS5 or the traffic is not web requests, use SOCKS5 and, where possible, the socks5h scheme. For anything tied to an account, use a sticky port rather than 823 or 824.

An app with no proxy settings at all can be routed through Proxifier. Step-by-step Telegram setup is in the Telegram guide, browsers are covered in the guides for Chrome and Firefox, and other apps in the guides section.

Is SOCKS5 faster?

You often read that SOCKS5 is faster because it does not parse requests. In practice, for https:// sites both protocols do the same thing: open a tunnel and relay encrypted bytes. Speed depends on the route to the proxy exit, the address type (residential, mobile or datacenter) and the site itself, not on the protocol.

Traffic is counted the same way too. At Prokso you pay for gigabytes in both directions, sent and received, whether you chose HTTP or SOCKS5. Switching the protocol in the generator costs nothing extra.

UDP: what no port carries

As a protocol, SOCKS5 also describes relaying UDP with the UDP ASSOCIATE command. That is why people sometimes expect a SOCKS5 proxy to work for calls or games. Prokso does not support UDP, neither on port 824 nor on sticky ports.

Voice and video calls in messengers, most online games and some streaming video run over UDP. They will not work through Prokso proxies, even if the app lets you enter a SOCKS5 proxy. Messages and files in Telegram go over TCP and work fine.

One more limit concerns site ports: mail ports are closed, while 80, 443, 53, 853, 5228, 5060, 8080, 8090, 8443 and 8888 are open. That is enough for websites and APIs.

SOCKS4, PAC files and system proxies

Some apps offer SOCKS4 and SOCKS4a. These are older versions of the protocol: SOCKS4 has no password login and only accepts IP addresses, while SOCKS4a adds passing the site name. Prokso provides SOCKS5, so choose that in such apps.

A PAC file and the Windows or macOS system proxy are not separate protocols but ways to tell apps which proxy to use. Underneath it is still HTTP or SOCKS5, with the same ports and rules described above.

If it does not connect

  • Error 407 over HTTP: the proxy did not accept the login, or the plan is out of traffic. See 407 Proxy Authentication Required.
  • SOCKS5 refuses the connection: check the port, the protocol type and the login details. See SOCKS5 connection refused.
  • "General failure" in SOCKS5: the proxy could not reach the site. See SOCKS5 general failure.
  • An SSL error right after connecting: most often the https:// scheme in front of the proxy address; change it back to http://.

Other codes are on the proxy errors page. To check which IP your browser uses and whether WebRTC exposes your own address, open My IP. Which other signals a site sees is covered in the article "Can websites tell you are using a proxy".

FAQ

Which is better for a browser: SOCKS5 or HTTP?

HTTP. It works with a username and password in every browser, while Chrome does not send a password for SOCKS5. SOCKS5 in a browser only makes sense with an IP whitelist.

What is the difference between socks5h and socks5?

With socks5h the proxy resolves the site name; with socks5 your device does it through its own DNS server. For Prokso use socks5h, otherwise your DNS server sees which sites you open.

Can one sticky port be used for both HTTP and SOCKS5?

Yes. Ports 10000-20000 accept both protocols, and the IP on a port is the same for both.

Does SOCKS5 encrypt traffic?

No, and neither does an HTTP proxy. The content of https:// sites is protected by the site's own encryption; neither SOCKS5 nor HTTP encrypts the leg to the proxy.

Do calls and games work through Prokso SOCKS5?

No. They need UDP, and Prokso proxies do not carry it on any port. Messages and files work because they go over TCP.

Does SOCKS5 cost more?

No. The price depends only on the proxy type (residential, mobile or datacenter) and the traffic volume. You choose the protocol in the generator at no extra cost.

Read next

Install the Prokso app