Guides

Rotating proxies: what they are, sticky sessions, price per GB

By · Published

TL;DR

  • A rotating proxy gives you a new IP address on every request, from one fixed address you connect to. A sticky session keeps one IP for a while.
  • Rotating residential proxies are billed per GB. Price your GB at every seller in the residential proxy calculator.
  • Rotate for many separate pages. Stick for logins and multi-step flows. Test it yourself with one curl line.

A rotating proxy is one address with many IPs behind it

A proxy is a middleman: the site sees its IP address (the number that says who you are online), not yours.

With a normal proxy you get one IP. With a rotating proxy you connect to one gateway, such as pr.oxylabs.io:7777. The gateway sends each request out through a different IP from a big pool.

Oxylabs says its residential proxies rotate with every request by default. SOAX says the same: no session setting, new node every request.

Rotation is not only for home IPs. Bright Data calls its shared pools “Rotating Proxies” on datacenter, ISP and residential. Which type to buy is its own question: see residential vs datacenter proxies. We ran both, a new IP on every request, in our proxy benchmark.

There is a second, smaller kind. Webshare’s rotating proxy endpoint cycles through the proxies already in your account. Same idea, but the pool is your own list, not millions of IPs.

How the gateway picks: Bright Data says that, by default, it hands each request a random IP from the pool that fits your settings. Ask for Canada and you get a random Canadian IP. The next request gets a different one.

You never see the pool. You see one host and port, and a login. Decodo’s docs call this kind of gateway a backconnect proxy.

Webshare’s endpoint is the list version. You buy a set number of proxies, and the endpoint cycles through them. One of its plans: 10 proxies, refreshed every 15 minutes, up to 200,000 IPs a month, for $12.35/mo. You set the refresh anywhere from every 5 minutes to every month. Its residential plan is the pool version: one login, and Webshare says the IPs behind it refresh by themselves.

Sticky sessions keep one IP until a timer runs out

Sometimes a new IP per request breaks things. You log in, then your next click comes from a stranger’s house.

A sticky session fixes that. You add a session ID (any short string you make up) to your proxy username. Every request with the same ID leaves through the same IP. A new ID gets a new IP.

Here is how five big sellers do it, from their own docs:

seller keep an IP how long by default longest session ends early when
Bright Data -session-<id> in the username while you keep sending no fixed limit 5 minutes with no requests
Oxylabs -sessid-<id> 10 minutes 1440 minutes (24 hours) with -sesstime- the IP goes offline
Decodo -session-<id> 10 minutes 1440 minutes with -sessionduration- the home device goes offline
IPRoyal _session-<8 characters> in the password set by _lifetime- 7 days the IP becomes unavailable
SOAX -session-<id> while you keep sending no fixed limit; a stateful session can keep its node until it fails 60 seconds with no requests

Across the 36 residential sellers in our directory that list a longest sticky time, the range runs from 12 minutes (Massive) to 7 days (IPRoyal, anyIP, MarsProxies).

A sticky IP is a home device, and homes switch off. Decodo warns that the longer the session, the more likely the IP changes early. Most sellers then quietly hand you a new IP.

If a silent switch would break your job, ask for an error instead:

  • Bright Data: add -const to the session. You get a 502 when the IP drops.
  • Oxylabs: use sessid_oneip instead of sessid. Also a 502.
  • IPRoyal: add _killswitch-1. You get a 410.
  • SOAX: give a stateful session the bind rule. Requests fail instead of moving to another node.

So there are two ways an IP changes. Per request: no session ID, new IP every time. Per time: a session ID with a timer, and a new IP when the timer ends or the device drops.

Some sellers also do it by port, no username tricks needed. Oxylabs gives sticky ports 10001 to 49999, each holding one IP for up to 10 minutes. Decodo’s dashboard offers sticky ports of 1, 10, 30 or 60 minutes.

Idle timers catch people out. Bright Data drops a session after 5 minutes with no requests. Its FAQ suggests a tiny keep-alive request every 30 seconds to hold the IP longer.

Neither Bright Data nor SOAX prints a top limit. Bright Data’s proxy FAQ says a home IP is only usable while that device is online, charged and not in use; when it goes, you get another IP from the same country. It also warns that holding one IP for a long time makes it easier for a site to flag it as a proxy.

SOAX splits it in two. A session in the username dies after 60 seconds idle. A stateful session, made through its API, is long-lived: you pause or delete it yourself, and you set how its IP changes: every N seconds (300 by default, 10 at least), every N requests, only on error, or never (bind).

Decodo has a strict mode too: session_iplock returns a 502 instead of a new IP. Why want an error? Halfway through a checkout, a silent IP change breaks things later in ways that are hard to trace. An error tells you now, so you can start a fresh session.

Copy these session strings

Same idea, five spellings. These are the formats from each seller’s docs (your own user, zone and password go in):

Bright Data  brd-customer-<customer_id>-zone-<zone_name>-session-mystring12345:<zone_password>
Oxylabs      customer-USERNAME-cc-DE-sessid-abcd1234-sesstime-30:PASSWORD
Decodo       user-username-session-example1-sessionduration-90:password
IPRoyal      username123:password321_country-br_session-sgn34f3e_lifetime-10m
SOAX         country-us-session-job1:YOUR_PACKAGE_PASSWORD

Small rules that bite:

  • Bright Data allows letters and digits only in a session ID. A - or * gives an error.
  • SOAX allows letters, digits and underscores, up to 32 characters.
  • IPRoyal wants exactly 8 characters and one time unit (10m, not 1h30m).
  • Bright Data drops the session if you change country, city or any other setting between requests. It also drops it if your own server switches between world regions (Americas, Europe/Middle East/Africa, Asia-Pacific).

A typo in the username often comes back as 407 (the proxy refused your login).

Most sellers read the session from the proxy username. IPRoyal reads it from the password. If you log in by whitelisted IP (your server’s IP is pre-approved, no password), Decodo moves the settings into the host name: session-example1-sessionduration-90.gate.decodo.com:10000.

The session ID is yours to invent. Oxylabs’ own PHP example just uses a random number. One ID per worker gives you parallel sessions: Decodo says session-1 and session-2 act like two separate sticky ports.

A simple habit: make the ID from a job name plus a counter, like scrape01, scrape02. Bump the counter when you want a fresh IP. Eight letters and digits, nothing else, passes the rules at all five.

Rotate for many pages, stick for one visitor

your job use why
Thousands of product or search pages rotate each page stands alone; spreads requests over many IPs
Getting 429 (too many requests) from one IP rotate the limit is often per IP
Login, cart, checkout, multi-step form sticky the site expects one visitor on one IP
Paging through results that need a cookie sticky IPRoyal names session-based login and tracking as the use

Rotation is not magic. Bright Data notes that at a high rate, or with many workers, you may get the same IPs again. And a new IP does not change your browser fingerprint or headers. If you still see 403 (the site refused you), a Cloudflare “Just a moment…” page or error 1020, the IP may not be the problem: see how to avoid getting blocked.

In practice most jobs mix both. Rotate between “visitors”, stick within one. A price scraper can rotate on every product page. A job that logs in, then reads 20 pages behind the login, needs one sticky session for those 21 requests.

There is a middle option at Bright Data: dedicated residential IPs. They are yours alone, but only toward the sites you name. Because home devices come and go, Bright Data groups several devices behind each one (it calls the group a gIP) and rotates inside that group.

One more limit: the narrower your target, the smaller the pool. Bright Data notes that at a high rate or with many workers, IPs can repeat. Ask for one small city and that happens sooner.

Check that it really rotates

Point any proxy at our proxy checker. It shows the IP a site sees. Run this a few times:

curl -x http://USER:PASS@HOST:PORT https://scrapenews.com/ip
  • Rotating: a different IP each time.
  • Sticky: add your session ID to USER. Same IP each time, until the timer ends.

/ip.json adds the country, city and network, so you can also check your country setting worked.

/ip.json returns the IP, its network (the ASN: a number that says which company owns the IP), country, city, time zone and position. If a “residential” IP shows a hosting company as its network, it is probably a datacenter IP.

Want proof your real IP stays hidden? Get it first with curl https://scrapenews.com/ip (no proxy). Then add ?me=YOUR_IP to the proxy request, and the checker searches every header for it.

Over HTTPS the proxy can’t add headers, so the full anonymity level only shows on plain http:// requests. In a browser, also run the self-test on the proxy checker page: browsers leak in ways curl does not.

Rotating residential proxy price per GB

Residential proxies are billed per GB of traffic. Every seller, cheapest first at your size, from list prices (no coupons): the residential proxy calculator.

Two things to know:

  • Minimum buys hide in small sizes. Need 1 GB from a seller that only sells a 50 GB pack? You pay for the pack. Type your size in the calculator.
  • Price says nothing about whether it gets through. Our own runs will.

How each number is made: for every seller, our calculator tries each way to buy the amount. That means a plan big enough, a plan plus extra GB, repeat packs, or pay as you go. It keeps the cheapest. Per GB = that total divided by the GB you asked for.

Rows can look odd on purpose: a seller whose smallest pack is bigger than your size shows the pack price, and a one-time welcome credit is a trial, not a plan.

Coupons are left out of the ranking. A seller’s page may offer a first-months discount, but the list price is what you pay after.

IP pool sizes are claims, not counts

Every seller puts a pool size on its page. Nobody outside can count it. Here is what each says:

seller pool it claims
Bright Data 400 million IPs
Oxylabs 175 million
SOAX 155 million
Decodo 115 million
Webshare 80 million
IPRoyal 64 million

The numbers don’t even agree with each other. On its own comparison page, SOAX lists itself at 191m+ IPs and Bright Data at 72 million residential. Its developer docs say 155 million.

For a rotating job, the pool in your target country matters more than the world total. Ask for that number.

Across 39 residential sellers in our data, the claims run from 1 million to 400 million IPs. A pool size is a number the seller chooses to print. You can’t check it, and it is not the number you actually use.

What you use is the slice that fits your settings, right now. Ask for one country, one city or one mobile network, and that slice shrinks fast.

A better test than any claim: send 100 rotating requests to /ip with your real settings and count the different IPs you get back. Many repeats means a thin pool for your target, whatever the homepage says.

Paste into your AI

I use rotating residential proxies from <seller>. My proxy line is HOST:PORT with user <USER>.
Write a <Python/Node> script that:
1. sends 5 requests to https://scrapenews.com/ip with rotation and prints each IP,
2. then 5 requests with a sticky session ID (use <seller>'s username format) and prints each IP,
3. retries a request once with a new session ID if it gets 407, 429, 403 or 502.
Keep my password in an environment variable, never in the code.

Why each step: the first two runs prove rotation and stickiness work before you scrape anything.

The retry codes each mean something different:

  • 407: the proxy refused your login, often a typo in the session string. Fix it, don’t just retry.
  • 429: too many requests. Pause, then try a new session.
  • 403: the site refused you. A new IP may help, or the problem is your headers.
  • 502: with Bright Data’s -const, Oxylabs’ sessid_oneip or Decodo’s session_iplock, the sticky IP dropped. Start a new session.

Keeping the password in an environment variable stops it from ending up in a repo or a chat log.

Tools for this

ToolPrice
Bright Data Residential Proxies: Rotating residential proxy pool from Bright Data with country, state, city and ZIP targeting. Billed per GB, pay as you go or monthly.$8.00/GB
DataImpulse Residential Proxies: Rotating home IPs from a 90M+ pool in 195+ countries, billed by traffic used, with no subscription.$1.00/GB
Decodo Residential Proxies: Rotating residential proxies from Decodo (formerly Smartproxy), billed per GB with pay as you go or monthly plans.$4.00/GB
Evomi Residential Proxies: Rotating or sticky IPs from real home devices, with country and city targeting. Sold by the gigabyte.$0.99/GB
HProxy Residential Proxies: Residential proxies in two pools (Lite and Premium) from one prepaid balance. The balance never expires.$0.50/GB
IPRoyal Residential Proxies: Residential proxies from IPRoyal, billed per GB. Bought traffic does not expire.$7.00/GB
Massive Residential Proxies: Rotating residential IPs from opted-in consumer devices in 195+ countries, with country, region and city targeting and sticky sessions up to 12 minutes.$8.00/GB
NodeMaven Residential Proxies: Rotating home IPs with sticky sessions up to 24 hours. Target by country, city, ZIP or ISP. Sold by traffic used.$4.25/GB
Oxylabs Residential Proxies: Rotating residential proxies from Oxylabs, billed per GB from one credit plan that also pays for their other proxies and APIs.$5.00/GB
SOAX Residential Proxies: Rotating or sticky IPs from real home connections, targeted by country, region, city, ISP or ASN, paid per GB.$5.00/GB
Webshare Residential Proxies: Rotating home IP addresses you pay for by the gigabyte, with country, city, state, ZIP and ASN targeting.$3.50/GB

Sources

  1. Bright Data docs: Proxy and IP rotation control docs.brightdata.com
  2. Bright Data docs: Residential products FAQ (session idle time) docs.brightdata.com
  3. Oxylabs docs: Session Control & IP Rotation developers.oxylabs.io
  4. Decodo help: Session Types help.decodo.com
  5. Decodo help: Custom Sticky Sessions help.decodo.com
  6. IPRoyal docs: Rotation (sticky, randomize, killswitch) docs.iproyal.com
  7. SOAX docs: Residential Proxies (session types) developers.soax.com
  8. Webshare: Rotating proxies (rotating proxy endpoint) webshare.io
  9. SOAX: SOAX vs Bright Data (pool size claims, checked 2026-11-16) soax.com
  10. Webshare: Pricing (checked 2026-11-25) webshare.io
  11. SOAX developer docs (pool size claim, checked 2026-11-16) developers.soax.com
  12. Webshare: Residential proxy (pool size claim, checked 2026-11-16) webshare.io
  13. IPRoyal: Residential proxy pricing page (checked 2026-11-26) iproyal.com
  14. Bright Data docs: Proxy products FAQ (long sessions) docs.brightdata.com
  15. SOAX docs: Stateful Sessions developers.soax.com