Quick answer
To use SocksNode residential proxies with cURL, pass the -x flag with http://USERNAME-country-us:[email protected]:9000. Use port 9000 for rotating IPs or 10000 for sticky IPs, and switch the scheme to socks5h with ports 11000 or 12000 for SOCKS5. Country and geo targeting are set in the username token.
Before you start
SocksNode offers residential proxies across 195+ countries over HTTP, HTTPS, and SOCKS5 with username/password auth. Generate credentials for free in the dashboard proxy generator; only routed traffic consumes your prepaid bandwidth (from 5 GB for $4.50, non-expiring on flexible plans).
cURL is the fastest way to verify a credential and country before wiring it into an application.
Configure the proxy in cURL
Rotating HTTP: This returns a fresh US residential IP.
SOCKS5: The socks5h scheme resolves DNS through the proxy. Change the country token in the username to target any of 195+ countries.
# Rotating HTTP
curl -x http://USERNAME-country-us:PASSWORD@global.socksnode.com:9000 https://api.ipify.org
# SOCKS5
curl --proxy socks5h://USERNAME-country-us:PASSWORD@global.socksnode.com:11000 https://api.ipify.orgRotating vs sticky sessions
Rotating sessions rotate the exit IP each request: HTTP port 9000 or SOCKS5 port 11000. Run a request a few times and you should see different IPs.
Sticky sessions hold one IP from 1 minute up to 24 hours: HTTP port 10000 or SOCKS5 port 12000. Use a token like USERNAME-country-us-session-test1-lifetime-10 to confirm the same IP is returned across repeated calls within the lifetime.
Geo targeting and compliance
Targeting lives in the username token: country across 195+ countries, US state and city, or ASN/ISP within a country. Only the username changes, so one command template covers every region.
Use the proxy lawfully, respect the target site's terms of service, and stay within applicable law and reasonable request rates.
See also
Frequently asked questions
How do I verify my exit IP?
Send a request to a service like https://api.ipify.org through the proxy; the returned IP is your current residential exit.
What is the difference between socks5 and socks5h?
socks5h resolves DNS on the proxy, while socks5 resolves it locally. Use socks5h to keep lookups on the residential exit.
How do I test a sticky IP?
Use port 10000 or 12000 with a session token like USERNAME-country-us-session-test1-lifetime-10 and repeat the request; the IP should stay the same within the lifetime.
Can I target a specific country from cURL?
Yes. Set the country token in the username, such as USERNAME-country-jp, choosing from 195+ countries plus US state, city, and ASN options.
Does testing with cURL cost much bandwidth?
Only the bytes transferred are billed. A small test request uses minimal bandwidth from your non-expiring prepaid balance.


