HTTPS vs. SOCKS5 Proxies: Which Should You Use?

On this page
HTTPS and SOCKS5 proxies can both carry web traffic through a residential exit, but they sit at different layers and expose different controls to your application. The best choice is usually determined by client support and the kind of traffic being sent—not by a claim that one protocol is always faster.
PacketStream recommends HTTPS for most integrations. SOCKS5 is the secondary option when an application needs its more general TCP proxying model.
PacketStream connection details
All three public proxy endpoints use username and password authentication:
| Connection type | Host | Port | Guidance |
|---|---|---|---|
| HTTPS proxy | proxy.packetstream.io | 31111 | Recommended default |
| SOCKS5 proxy | proxy.packetstream.io | 31113 | Use when the client or workflow benefits from SOCKS5 |
| HTTP proxy | proxy.packetstream.io | 31112 | Available for compatibility, but not recommended |
Do not hard-code production credentials in source control. Load them from a secret manager or environment variables, and avoid passing them directly on a shared command line when another supported authentication mechanism is available.
What an HTTPS proxy connection protects
With an HTTPS proxy, the client establishes TLS to the proxy endpoint. For an HTTPS destination, the client normally creates a tunnel through that proxy and then negotiates destination TLS inside the tunnel.
This separates two encrypted relationships:
- TLS between your application and the PacketStream proxy endpoint.
- TLS between your application and the destination website.
The exact implementation is controlled by the HTTP library, so verify that its proxy URL actually uses the https:// scheme. An HTTPS destination requested through a plain http:// proxy URL does not turn the client-to-proxy hop into HTTPS by itself.
A minimal cURL request looks like this:
curl --silent --show-error --fail-with-body \
--proxy 'https://proxy.packetstream.io:31111' \
--proxy-user 'USER:AUTH_KEY' \
'https://ipinfo.io'
HTTPS proxies work naturally with common HTTP clients, scraping frameworks, command-line tools, and browser automation systems. That broad support is why they are the practical default for HTTP and HTTPS workloads.
How SOCKS5 differs
SOCKS5 is a general proxy protocol for TCP connections. It does not interpret HTTP request methods or headers; it relays the connection to the requested host and port.
That makes SOCKS5 useful when:
- the application has first-class SOCKS support;
- the traffic is TCP-based but not strictly an HTTP client workflow;
- a library’s HTTP-proxy behavior is limited but its SOCKS support is mature.
With cURL, use the PacketStream SOCKS5 endpoint on port 31113:
curl --silent --show-error --fail-with-body \
--proxy 'socks5h://proxy.packetstream.io:31113' \
--proxy-user 'USER:AUTH_KEY' \
'https://ipinfo.io'
Authentication and targeting work across the choice
The protocol selection does not change the high-level targeting model. Country targeting is expressed in the auth key, for example:
AUTH_KEY_country-US
PacketStream recommends two-letter ISO country codes. When a requested country has no available exits, the request fails rather than using another country.
Automatic rotation selects a residential exit for each new proxy connection. Sticky session controls can also be appended when a workflow needs the same exit for up to 60 minutes.
Common configuration mistakes
Using the right port with the wrong scheme
Treat the scheme and port as a pair. The recommended endpoint is https://proxy.packetstream.io:31111; SOCKS5 uses socks5h://proxy.packetstream.io:31113 in cURL.
Assuming destination HTTPS encrypts every hop
An https:// destination encrypts the connection to the destination. Use the HTTPS proxy endpoint when you also want TLS on the client-to-proxy hop.
Letting the library bypass the proxy
Environment variables such as NO_PROXY, per-request transport settings, or browser launch flags can bypass a global proxy setting. Verify the observed exit using a service such as https://ipinfo.io before testing a real workload.
Which protocol should you choose?
Start with HTTPS on port 31111 for web scraping, API requests, and browser-oriented work. It is the recommended PacketStream connection and is widely understood by HTTP tooling.
Choose SOCKS5 on port 31113 when the application specifically needs SOCKS or handles non-HTTP TCP traffic.
Whichever protocol you choose, test authentication, exit location, connection reuse, and failure handling before increasing concurrency. The protocol is only one part of a reliable residential proxy integration.