SOCKS5 Proxy Not Working: How to Find the Failing Step

· Updated:

When a SOCKS5 proxy is not working, the cause is usually one of four things: the login is rejected, the port is closed or blocked, the port speaks HTTP rather than SOCKS5, or the client cannot do SOCKS5 with a username and password at all. A verbose curl test tells you which in one command, because each failure produces a different message. Fix the step that fails and test again.

Both protocols on one port removes the mismatch

Why a SOCKS5 proxy stops working: the handshake in short

A SOCKS5 connection is a short binary conversation defined in RFC 1928. The client connects to the proxy port and lists the login methods it supports; the server picks one. If it picks username and password, the client sends them (RFC 1929) and the server answers success or failure. Only then does the client ask the proxy to connect to the destination.

Each of those steps fails in its own way, and many apps hide the difference behind a generic "connection failed" message. That is why testing the same line in a tool that reports the step, such as curl, saves time.

Test the proxy with curl and read the error

Run this with your own values. --socks5-hostname sends the website's name to the proxy for resolution, which matches what most apps should do:

curl -v --max-time 20 --socks5-hostname USER:[email protected]:1080 https://proxyv4.com/api/my-ip

On success you see the SOCKS5 connection in the verbose output and the exit IP in the body. On failure, curl prints one of the messages below (as tested with curl 8.5; older versions word some of them differently).

curl messageWhat failedWhere to look
(7) Failed to connect ... Couldn't connect to server or Connection refusedNothing accepted TCP on that IP and portWrong port, expired order, or a firewall
(28) Connection timed outNo reply at allYour network or a firewall drops the port
(97) User was rejected by the SOCKS5 server (1 1).Login rejectedUsername or password
(97) No authentication method was acceptable.Server and client agree on no login methodClient offered no username/password, or the server expects another method
(97) Received invalid version in initial SOCKS5 response.The port did not answer in SOCKS5The port runs HTTP only

Fix each failure

Work from the network up: reachability first, then protocol, then login.

SOCKS5 connection refused or timing out

Refused means the address answered but nothing listens on that port, so check the port against your dashboard and confirm the order is still active. A timeout means packets are dropped on the way. Office networks, public Wi-Fi and some security suites block outbound connections to uncommon ports; try another network, such as a phone hotspot, to tell your network from the proxy.

The proxy server refusing connections guide covers firewall and expiry checks in more depth.

SOCKS5 auth failed

A rejected login is usually a copy problem: a trailing space, a line break, or a mixed-up username and password. Copy the pair again from the dashboard. If the password contains @, :, / or #, URL-encode it inside a socks5h://user:pass@host:port URL (for example @ becomes %40), or use separate username and password fields where the app has them.

"No authentication method was acceptable" is different: the client did not offer username and password at all, often because the credentials were left out of the URL or the app only supports anonymous SOCKS5.

SOCKS5 vs HTTP port mismatch

Some providers run HTTP and SOCKS5 on separate ports. Point a SOCKS5 client at an HTTP-only port and curl reports an invalid SOCKS5 response; do the reverse and an HTTP client typically gets Proxy CONNECT aborted or a reset. Fix it by matching the client's protocol to the port, or by using a port that accepts both.

For the background on how the two protocols differ, see HTTP vs SOCKS5 proxy.

Client settings that break SOCKS5

If curl works and your application does not, the problem is in how the application handles SOCKS5.

Python and other libraries

requests needs the extra SOCKS dependency; without it you get InvalidSchema: Missing dependencies for SOCKS support. Install requests[socks], and use socks5h:// so the proxy resolves hostnames:

# pip install "requests[socks]"
import requests

PROXY = "socks5h://USER:[email protected]:1080"

try:
    r = requests.get("https://proxyv4.com/api/my-ip",
                     proxies={"http": PROXY, "https": PROXY}, timeout=(10, 30))
    print("Exit IP:", r.text.strip())
except requests.exceptions.InvalidSchema as e:
    print("SOCKS support missing:", e)
except requests.exceptions.ConnectTimeout:
    print("No answer from the proxy port in time")
except requests.exceptions.ConnectionError as e:
    print("Proxy refused, rejected the login or dropped the connection:", e)

The h matters when your local resolver cannot see the name or is slow. Other libraries have their own switch, for example a separate SOCKS connector package in some Node.js HTTP clients, so check the library's documentation before assuming the proxy is at fault.

Browsers and apps without SOCKS5 login

Chrome and other Chromium browsers do not support username and password for SOCKS5 proxies, and Firefox's manual proxy settings have no SOCKS login fields either. The connection fails even though the line is correct. Use the HTTP protocol for an authenticated proxy in those browsers, or a proxy extension or app that documents SOCKS5 authentication.

Also check that you entered the line in the right shape. Pasting ip:port:user:pass into a field that expects host:port makes the app read the wrong part as the port; the curl setup guide shows the URL form most tools accept.

How ProxyV4 handles SOCKS5 and HTTP on one port

Port mix-ups disappear when one port accepts both protocols. Every ProxyV4 proxy supports HTTP(S) and SOCKS5 with username and password login. From the order's page in the dashboard you choose HTTP only, SOCKS5 only, or both on the same port, so the same ip:port:user:pass line works in a SOCKS5 client and an HTTP client. Switching modes can move the proxy to a new port, so copy the line again afterwards.

The IPs are private datacenter IPv4 in seven countries (United States, Vietnam, Japan, South Korea, Singapore, United Kingdom and Hong Kong) and static ISP addresses in 23 countries; both run SOCKS5 everywhere except Vietnam, which is HTTP(S) only. Each IP has one tenant for the whole term, traffic is unmetered, and renewing before expiry keeps the same address.

It does not fit if your workflow depends on UDP through SOCKS5 (ask support through a ticket before ordering; it is not promised), if you need an IP that changes on every request, or if you need mobile IPs. IPv6 proxies are a separate product that only works on IPv6-ready sites. See live prices and start with one IP to test in your own tools.

Confirm the fix

Once curl succeeds, run the line through the proxy checker to confirm the exit IP and country, then repeat the request from the application that failed. The exit IP it reports should match. If the checker fails too while your settings match the dashboard, open a ticket with the curl output; a proxy that fails for a technical reason is covered by the refund policy as a balance credit.

Frequently asked questions

What is the difference between socks5:// and socks5h://?

With socks5:// your machine resolves the website's name and sends the IP to the proxy. With socks5h:// the proxy resolves it, which avoids local DNS failures and DNS requests from your own network.

Why does SOCKS5 work in curl but not in Chrome?

Chromium browsers do not support SOCKS5 with a username and password. Use HTTP for an authenticated proxy in Chrome, or an extension that supports SOCKS5 login.

Can I use a SOCKS5 client on an HTTP proxy port?

Not on an HTTP-only port; the handshake fails. It works on a port configured for both protocols.

Do ProxyV4 proxies support SOCKS5 and HTTP together?

Yes. Choose both on the order's page and one port accepts either protocol with the same username and password.

Will my SOCKS5 proxy keep its IP when I renew?

Yes. Renewing before expiry keeps the same address.

Both protocols on one port removes the mismatch

Every ProxyV4 proxy supports HTTP(S) and SOCKS5 with username and password, and you can run both on the same port. Order one IP and test it in your own tools.

Try one private IP

Related articles

Free tools
Check proxies in bulk: status, exit IP and latency
Free online proxy checker: paste up to 100 ip:port:user:pass lines and see which proxies work, their exit IP and latency, plus what each failure result means.
Knowledge base
HTTP or SOCKS5: Picking the Proxy Protocol Your Software Needs
HTTP vs SOCKS5 proxy in plain terms: what each protocol carries, why HTTPS works through both, where UDP matters, and how to test which one a server speaks.
Proxy setup
Using cURL with an authenticated proxy: commands that prove it works
Send cURL requests through an authenticated HTTP(S) proxy with -x and -U, confirm the exit IP, read the CONNECT handshake and time each request on any OS.
Proxy errors
Firefox: "The proxy server is refusing connections" explained
Firefox says the proxy server is refusing connections when nothing accepts connections on the proxy port. Confirm it with curl, then fix Firefox settings.
Proxy errors
Proxy errors explained, with fixes
Proxy error pages each take one message, explain what it means, list the usual causes and walk through the fix in Windows, Chrome, antidetect browsers, phones and code. Every output shown was reproduced with real test proxies. If your error is not listed, check the message against the proxy checker first: it shows whether the proxy itself answers, so you know whether to look at the proxy or at your own setup.
Knowledge base
Why Chrome Shows ERR_SOCKS_CONNECTION_FAILED and How to Clear It
ERR_SOCKS_CONNECTION_FAILED means Chrome reached a SOCKS proxy but the handshake broke. Find out why credentialed SOCKS5 fails and which fix fits your setup.
Knowledge base
ERR_NO_SUPPORTED_PROXIES in Chrome: Reading and Repairing Your Proxy Setting
ERR_NO_SUPPORTED_PROXIES means Chrome found no usable entry in its proxy settings. Learn which strings it rejects, why SOCKS5 logins fail and how to fix them.
Knowledge base
Decoding "ProxyError: Max retries exceeded" in Python requests
Fix requests ProxyError max retries exceeded by reading the inner urllib3 error: refused, 407, timeout, wrong scheme, env vars or missing SOCKS support.
Products
Dedicated datacenter proxies: one private IPv4 per customer
Private IPv4 proxies in the US, Vietnam, Japan, South Korea, Singapore, the UK and Hong Kong. One tenant per IP, HTTP(S) and SOCKS5, no traffic metering.
Products
Static ISP proxies: residential IPs on consumer networks
Static ISP proxies in 23 countries, from Germany and the UK to the US, Brazil and Japan: fixed IPs on consumer networks, one customer each, unmetered traffic.