BuyProxy logo
Log inSign up

SOCKS5 Config Generator

Fill in your endpoint details and get ready-to-use SOCKS5 config for curl, Python, and Node.js.

Connection string
socks5://user:pass@us.buyproxy.org:1080
cURL
curl --socks5-hostname us.buyproxy.org:1080 \
  --proxy-user user:pass \
  https://example.com
Python (requests)
import requests

proxies = {
    "http": "socks5h://user:pass@us.buyproxy.org:1080",
    "https": "socks5h://user:pass@us.buyproxy.org:1080",
}

requests.get("https://example.com", proxies=proxies)
Node.js
const { SocksProxyAgent } = require("socks-proxy-agent");

const agent = new SocksProxyAgent(
  "socks5://user:pass@us.buyproxy.org:1080"
);

fetch("https://example.com", { agent });

Need SOCKS5 proxies to use with this? BuyProxy SOCKS5 proxies work on every network, billed per GB.

What the generator builds

Enter a proxy host, port, username and password and the tool writes ready-to-paste SOCKS5 configuration for curl, Python and Node.js. It runs entirely in your browser, so your credentials never leave the page.

BuyProxy lines come as host:port:username:password, and the targeting (country, city, session) is part of the username. Paste the four parts into the matching fields and the generated config keeps that targeting.

SOCKS5 or HTTP?

Use HTTP(S) proxies for ordinary web requests; almost every scraping library supports them. Use SOCKS5 when a tool only speaks SOCKS, or for traffic that isn't HTTP. With curl, socks5h:// resolves the hostname through the proxy, so DNS lookups also come from the exit location.

Questions

Are my credentials sent anywhere?

No. The config is generated in your browser; the page makes no request with the details you type.

What's the difference between socks5:// and socks5h://?

With socks5h the proxy resolves the hostname, so DNS lookups happen at the exit. With socks5 your own machine resolves it first.

Related guides