Skip to content

How to connect

Open the service in the dashboard and copy the Connection host and ports shown at the top of its page. The Proxy setup tab lists the same host and ports with your username and proxy password. Copy the host rather than reusing one from another service or product.

Residential IPv4 and Residential IPv6 listen on the same three ports on their connection host:

ProtocolPortEncrypted to the proxy
HTTP / CONNECT8080No
HTTPS (HTTP / CONNECT over TLS)8443Yes
SOCKS51080No

The three ports carry the same traffic to the same exits. The difference is only the hop between you and us. SOCKS5 over TLS is not offered.

Two cases add more ports on the same host:

  • Sticky ports (Residential IPv4): each endpoint gets its own gateway port, SOCKS5 10000–10999 or HTTP 20000–20999, and each port keeps one sticky IP for up to 24 hours while that IP stays available. Pick Sticky ports as the session type on the Proxy setup tab to get the list.
  • Static ISP: each IP has its own gateway port, and the standard HTTP and SOCKS5 ports rotate across your IPs. See Static ISP.
Terminal window
curl -x http://YOUR_HOST:YOUR_HTTP_PORT \
-U "YOUR_USERNAME:YOUR_PASSWORD" \
https://httpbin.org/ip

Use --socks5-hostname (or the socks5h:// scheme) rather than socks5://, so hostnames are resolved at the exit rather than on your own machine.

Residential IPv4 exits cannot reach IPv6-only destinations. Once the gateway has seen that a site has no IPv4 address, it refuses the connection at once with a reason (see Proxy errors). Use an IPv6 product when the target has no reachable IPv4 address.

Many phone apps look up a site’s address on the phone and pick its IPv6 address. Residential IPv4 cannot reach an IPv6 address, so those connections fail. In the app’s proxy settings:

  • Turn on remote DNS (it may be called proxy DNS or resolve hostnames through the proxy), so each site’s address is looked up at the exit.
  • Turn off IPv6, or choose IPv4 only, if the app offers it.

Residential IPv6 uses its own connection host. Copy the host and credentials from that service in the dashboard; the ports are the same 8080, 8443 and 1080. Do not construct an endpoint by assuming :443. See Residential IPv6 for its session options.

Controls depend on the Residential IPv4 product:

  • Unlimited Standard: country, city and ASN targeting and sticky sessions.
  • Unlimited Pro: country targeting, city targeting in major cities, and sticky sessions.
  • Residential IPv4 Standard: country, city, region, and ASN targeting, and sticky sessions.
  • Premium: country, region (US states), city, and ASN targeting, and sticky sessions. Send region or city, not both; a city wins.
  • Lite: country targeting and sticky sessions. A sticky IP holds while the session keeps being used; there is no lifetime to set.

Unlimited Standard, Unlimited Pro, Residential IPv4 Standard and Premium accept a caller-set session lifetime on a sticky session; the options table gives the accepted range. Static ISP and Residential IPv6 have no location options in the username.

The Proxy setup tab shows only the controls your service supports.

Targeting rides on the username only: add each option and its value after your username, separated by hyphens, as in YOUR_USERNAME-country-de. The password is always your plain proxy password.

Combine only options supported by your product. This advanced-targeting example is for Residential IPv4 Standard or Premium:

Terminal window
curl -x http://YOUR_HOST:YOUR_HTTP_PORT \
-U "YOUR_USERNAME-country-de-city-berlin-session-ab12cd:YOUR_PASSWORD" \
https://httpbin.org/ip
OptionAvailabilityValue
countryAll Residential IPv4 productsTwo-letter ISO 3166-1 code, e.g. de
cityUnlimited Standard, Unlimited Pro, Residential IPv4 Standard and PremiumCity name, ASCII, no spaces. Send country with it
regionResidential IPv4 Standard and Premium; US states only on PremiumISO 3166-2 subdivision code, e.g. NY — not the name. On Premium, send region or city, not both
asnUnlimited Standard, Residential IPv4 Standard and PremiumDigits only, e.g. 7922 — not AS7922
sessionEvery product1–32 letters or digits. Same value requests the same exit IP
lifetimeUnlimited Standard, Unlimited Pro, Residential IPv4 Standard, Premium and Residential IPv6, with sessionHow long a session holds its IP, in seconds, up to 86400. Residential IPv4 Standard: from 1. Premium: from 180. Unlimited Standard and Unlimited Pro: whole minutes, from 60. Residential IPv6: from 60. 600 when none is set. Not on Lite or Static ISP
rotateEvery productAsks for a new IP per connection. This is the default, so it changes nothing on its own. It cannot be combined with session: a username with both is refused

No other option names are accepted.

These are common username shapes. Replace the capital placeholders with real values:

  • base_username
  • base_username-country-XX
  • base_username-rotate
  • base_username-rotate-country-XX
  • base_username-session-ID
  • base_username-session-ID-country-XX

Send no session and each new connection exits from a new IP. This is per connection, not per request — a client reusing a keep-alive connection or a connection pool keeps the same IP for every request on it.

Send a session and requests carrying that value ask for the same exit. Add lifetime, in seconds, to set how long the session holds its IP; the accepted range for each product is in the options table. The Proxy setup tab offers Set session lifetime where your service accepts one and shows its limit.

Session IDs are letters and digits only, up to 32 characters. Without lifetime, a session holds its IP for 10 minutes; lifetime is in seconds, up to 86400.

Terminal window
# Same IP for up to ten minutes
curl -x http://YOUR_HOST:YOUR_HTTP_PORT \
-U "YOUR_USERNAME-session-ab12cd-lifetime-600:YOUR_PASSWORD" \
https://httpbin.org/ip

Sessions are held on a best-effort basis. A held IP can drop early if the underlying residential connection goes away. On Residential IPv4, when one site stops answering through a sticky IP that still works for other sites, the session keeps its IP and the gateway answers that connection with No response; retry the request.

latency, fraudscore, device, activesince, http3, localdns, udp and extended are not available on Residential IPv4. Sending one is refused with the same answer as any invalid targeting option (see How a refused request answers); the message does not name the option. Remove it and the request works.

A rejected option is answered where the request is read, before any exit is chosen, so it comes back in milliseconds and never consumes traffic:

TransportAnswer
HTTP and HTTPS CONNECT407 Proxy Authentication Required, with the reason in the response body and in the X-Proxy-Reason header
SOCKS5The username and password step fails, the same way a wrong password does

This covers a value that is malformed (country-usa), one that is well formed but names nothing (country-zz — zz is not assigned in ISO 3166-1), and an option repeated in the same username. The reason reads: “The targeting options in your username are not valid for this service. Check spelling, and do not repeat an option.”

Every refusal uses 407, so read the reason before you change your password. A wrong password, an unknown username and a bad targeting option each carry their own sentence. A CONNECT client such as a browser never shows the body, so log the X-Proxy-Reason header. SOCKS5 has no field for a reason: to see which part was refused, send the same username once over HTTP, for example with curl -v. Proxy errors and refusal reasons lists every reason and what to do about it.

A country that is a real ISO 3166-1 code but has no exit free right now is a different answer: a coverage miss, not a bad request, and it can succeed later without you changing anything.

The service’s Proxy setup tab has a list generator: pick the session type (Rotating, Sticky or Sticky ports), the targeting controls supported by that service, quantity, and an output format (host:port:user:pass, user:pass@host:port, a URL, a curl command, or your own template), then copy or download it. On Static ISP it can also list one line per IP, each with that IP’s own port.

A service can authenticate by source address instead of by password. See IP whitelist.