NEWStandard createTask and in.php APIs. Change the address and you are connected.View API docs
GATESOLVER

Proxies and networking

Do proxies support SOCKS5?

Many do. Most proxy services expose the same exit IPs over both HTTP and SOCKS5 on different ports, and your client picks the protocol by the URL scheme.

The short answer

SOCKS5 is widely supported by proxy services, usually alongside HTTP. The difference is where each works: an HTTP proxy speaks HTTP and tunnels HTTPS with CONNECT, while a SOCKS5 proxy forwards raw TCP (and optionally UDP) without caring about the protocol inside. For scraping websites, both carry the same HTTPS traffic and give the same exit IP. Check your provider's dashboard for the SOCKS5 port and whether it uses the same credentials.

What SOCKS5 adds

  • Any TCP protocol. Databases, mail, custom APIs, anything that is not HTTP can go through SOCKS5.
  • Remote DNS. With the socks5h scheme, the proxy resolves host names instead of your machine. That hides your DNS lookups and avoids geo mismatches from local DNS.
  • UDP support in the protocol, though many proxy services do not enable it.
  • No header changes. A SOCKS proxy cannot add or alter HTTP headers, because it does not read them. Some HTTP proxies add Via or X-Forwarded-For, which a SOCKS proxy never does; see transparent proxies.

Using SOCKS5 from code

In Python, requests needs the optional SOCKS extra (pip install "requests[socks]"). Then use the scheme in the proxy URL:

import requests

tunnel = "socks5h://scraper:s3cret@198.51.100.23:1080"   # h = DNS via proxy
resp = requests.get("https://stock.example.org/api/levels",
                    proxies={"http": tunnel, "https": tunnel}, timeout=25)
print(resp.status_code)

In Node.js, fetch does not handle SOCKS by itself at the time of writing; a SOCKS agent package or an undici dispatcher that supports it is needed. Check the current documentation for the library you use. Browsers launched by Playwright or Puppeteer accept socks5://host:port as a proxy server, but Chromium does not support SOCKS5 with a username and password in that setting, so authenticated SOCKS usually needs a local forwarding proxy or an HTTP endpoint instead.

HTTP or SOCKS5 for scraping?

NeedBetter fit
Plain web scraping with an HTTP clientEither; HTTP is simpler
Headless browser with proxy credentialsHTTP (credentials supported)
Non-HTTP protocolsSOCKS5
DNS resolved at the exit locationSOCKS5 with remote DNS
Proxy passed into a CAPTCHA taskHTTP URL form, as the docs show

Speed is rarely a deciding factor; the exit IP's network and distance matter far more than the protocol.

Proxies in solving tasks

For task types that run through your proxy, such as Cloudflare Challenge or DataDome, GateSolver's documentation shows the proxy as an HTTP URL: http://user:pass@host:port. Use that form. If your provider gives you a SOCKS5 endpoint only, ask whether an HTTP port exists on the same account; most offer both. The page on the proxy format for tasks has examples.

Common mistakes

  • Using socks5:// when you need remote DNS. Local resolution can send you to a server in the wrong region, or leak which sites you query.
  • Forgetting the SOCKS dependency in Python, which gives an error about missing dependencies for SOCKS support.
  • Pointing an HTTP client at a SOCKS port, or the reverse. The connection fails with a protocol or reset error; match the scheme to the port.
  • Assuming SOCKS5 is more anonymous. The target still sees the proxy's exit IP and everything your client sends, like with any proxy.

Testing it

A one line check with curl confirms the port, credentials and exit IP: curl -x socks5h://user:pass@host:1080 https://example.com -I. If that works and your program does not, the problem is in the program's proxy settings, not the proxy. More checks are in how to test a proxy.

Common questions

When should I write socks5h instead of socks5?

With socks5h the proxy resolves domain names; with socks5 your machine does, which can leak lookups and pick the wrong region.

Will switching to SOCKS5 speed up my scraper?

Not in any way you would notice for web scraping; network distance and load matter far more.

Can I use SOCKS5 with Playwright?

Yes, without credentials. For authenticated SOCKS5, use a local forwarder or the provider's HTTP port.

Does SOCKS5 encrypt my traffic?

No. Encryption comes from HTTPS to the site; SOCKS5 only forwards the bytes.

Which format should I pass in a GateSolver task?

The HTTP URL form, http://user:pass@host:port, as shown in the API docs.

Keep reading