Rotating proxies and backconnect gateways: how IP rotation works
By the ProxyOnly team · 14 Nov 2026 · 6 min read · Updated 16 Nov 2026
A backconnect gateway hands your traffic to a pool of exit IPs. How rotation modes work, why a rotating setup can keep one IP, and how to retry well.
A rotating proxy gives your traffic a different exit IP address over time instead of a fixed one. Most rotating proxies are sold as a backconnect gateway: you connect to a single host and port, and the provider connects your request out through an address chosen from a large pool. You never see the pool, only the gateway.
This article explains how a gateway works, the rotation modes you will meet, a detail about connection reuse that surprises people, and how to retry failed requests without wasting traffic. For the choice between keeping an address and changing it, see also the guide to sticky sessions and rotation and the article on rotating vs sticky proxies.
What a backconnect gateway is
In a traditional setup you get a list of addresses and ports and pick one for each request. With a backconnect gateway you get one endpoint. When your request arrives, the gateway reads your credentials and any options in them, picks an exit address from the pool, and forwards the request from there. The word backconnect describes the gateway connecting back out to a pool of addresses rather than being one of them.
That design is why one hostname can serve thousands of different exit addresses. It also puts the choices in the username. The syntax differs between providers, but it often looks like this:
user-country-us new exit each request, United States
user-country-us-session-qa42 same exit for session qa42ProxyOnly does not run a gateway like this. We sell static proxies: each one has its own host, port and login and keeps its IP for the rental period, so with us you rotate by spreading requests across several proxies, as the guide to sticky sessions and rotation shows.
Rotation modes
- Per request: every request leaves from a new address. This suits jobs where requests do not depend on each other, such as fetching many public pages.
- Sticky session: the same address is kept for a session name or a time limit. This suits anything where the website expects one visitor to stay the same visitor, such as a sign-in, a cart or a form with several steps.
- Static: the address does not change for the whole rental period. That is not rotation at all, and it is how datacenter and ISP proxies are normally sold.
How long a sticky session lasts, and what happens when the address behind it goes offline, differs between providers. Assume a sticky session can end early, and write your code so that losing it does not corrupt a multi-step task.
Connection reuse can defeat rotation
Many HTTP clients keep a connection open and reuse it for the next request. On many gateways the exit address is chosen when the connection opens, not for each request, so a client that reuses one connection can keep the same address even though the proxy is rotating. This catches people out when they see the same IP in the first fifty requests.
You can check how your setup behaves in a minute. This sends ten requests, each on its own connection, and counts how many different exit addresses answered:
import requests
proxy = "http://USERNAME:PASSWORD@gateway.example.com:8000"
proxies = {"http": proxy, "https": proxy}
seen = set()
for _ in range(10):
seen.add(requests.get("https://httpbin.org/ip", proxies=proxies, timeout=30).json()["origin"])
print(len(seen), "distinct exit IPs in 10 requests")Run it again using one requests.Session() for all ten requests. If the count drops, your client is reusing connections and the gateway is pinning the exit to the connection. Behaviour differs by provider, so test yours rather than assume.
Choosing a rotation strategy
- Many independent public pages: rotate on every request.
- A login, cart or multi-step form: use a sticky session and keep it for the whole task.
- A long-lived identity, such as an account you own: use a static address.
- A site that limits each address by rate: rotate to spread the load, but stay within what the site allows, as covered in rate limiting explained.
What rotation does not fix
Rotation changes your address and nothing else. Your cookies, headers and browser fingerprint stay the same, so a site can still link requests from different addresses to one client. A site that blocks by network type will block a whole pool of the same type, which an ASN lookup shows.
Rotating in the middle of a logged-in task can also hurt, because each new address looks like a new visitor, and an account that appears to jump between countries within minutes is a classic reason for a security check. Rotate between tasks, not inside them.
Retrying failures with a fresh exit
When a request fails because the exit address misbehaved, such as a connection error or a timeout, a retry from a different exit often succeeds. On a gateway that uses the session syntax above, you get a new exit by using a new session name:
import uuid
def fresh_username(country="us"):
return f"user-country-{country}-session-{uuid.uuid4().hex[:8]}"With static proxies, retry on the next proxy in your list instead.
Cap the number of retries, wait a little longer after each failure, and do not retry blindly on every status code. A 403 or 429 is a message from the website, and a new address will not change the website's mind if the real problem is your request rate or behaviour. See why websites block IPs and proxies.
Rotation and cost
On a per-gigabyte plan every retry costs traffic, and so does opening a new connection for every request, because each new encrypted connection spends a little bandwidth and time on its handshake. Cap your retries, fail fast on errors that a new address cannot fix, and reuse connections when you do not need a new address. On a per-address plan, rotating among addresses you already rent costs nothing extra, but each address you add costs money for the whole rental period. How to compare proxy prices shows how to put the two models side by side.
What to ask about a pool
- How big is the pool in the country you need, and is that the size for that country or the global total?
- How often are addresses replaced, and are they shared with many other customers?
- Are the addresses spread over many networks, or concentrated in a few?
- Can you choose a city or only a country?
- What does a sticky session guarantee, and for how long?
Residential proxies: how they work, what they cost covers the pricing side of a gateway, and the guide to choosing the right proxy type helps you decide whether you need rotation at all.
Questions people ask
What is the difference between a rotating proxy and a backconnect proxy?
They describe different things and usually come together. Rotating describes what happens to the exit address, which changes. Backconnect describes the architecture, a single gateway in front of a pool. Most rotating proxy services are backconnect gateways.
Does a rotating proxy hide that I am using a proxy?
No. Rotation changes the address, not the signals that identify a proxy or a bot. See transparent, anonymous and elite proxies.
How many addresses are in a rotating pool?
Providers quote very large numbers, usually for the whole pool across all countries. The figure that matters is the pool size in the country you need and how often addresses repeat, so ask for both.
Try it yourself
Create an account, add funds from US$1 and order a proxy in the country you need.
Keep reading
25 Nov 2026 · Proxy basics
IP whitelisting (allowlisting) explained, and how static proxies help
IP allowlisting restricts access to a known set of addresses. Why it keeps breaking when your own address changes, and the fixes that actually hold.
25 Nov 2026 · Proxy basics
Buying IPv6 proxies: when they work and when they do not
IPv6 proxies cost a fraction of IPv4 because they only reach sites that publish an IPv6 address. How to check your targets before you spend anything.