What is a rotating proxy?
A rotating proxy changes the IP address automatically: on every request or after a set time.
Updated · Prokso editorial team
- A rotating proxy is a single entry point behind which the exit address changes by itself, with no changes in your app.
- Rotation spreads requests across many addresses, so none of them hits the website's limit.
- In Prokso, ports 823 (HTTP) and 824 (SOCKS5) give a new IP per request; for one address over time, use ports 10000-20000.
- Rotation per request does not suit logins and shopping carts: they need a sticky session.
A rotating proxy is a proxy whose exit IP address changes automatically. With rotation you connect to one gateway address, and the exit IP changes by itself. The website sees every new request as a request from a different visitor.
This is needed for data collection: the load is spread across many addresses, and none of them hits the rate limit. Rotation per request does not suit work with an account: a website gets suspicious if one user shows up from a new place every second. That is where a sticky session is used. Below we cover how rotation works inside, what types there are, how to use it in code and where it does harm.
How rotation works: the gateway and the address pool
A regular proxy has one address: you connect to a server, and the website sees that server's IP. A rotating proxy works differently. You connect to a gateway, and for each connection the gateway takes an address from a large pool and sends the request through it. This setup is called a backconnect proxy.
Different services call this mode differently: IP rotation, proxies with automatic IP change, dynamic proxies. The idea is the same - it is not your app or you who change the address, but the proxy side. In the Prokso dashboard the mode is called "Rotating (new IP per request)".
Nothing changes for your app: the connection string stays the same. In Prokso it is the host gw.prokso.com plus your plan's username and password. Only what the website sees changes: the country and the address are taken from the pool according to the conditions in the username, for example LOGIN__cr.de for Germany.
The pool is shared by all customers, and it is alive. Residential and mobile addresses appear when a device goes online and disappear when it switches off. So rotation does not cycle through a fixed list: each new address is simply another available address from the pool that matches your conditions.
Types of rotation
The word "rotation" covers several different modes. They differ in what triggers the address change.
| Type of rotation | When the IP changes | How to do it in Prokso |
|---|---|---|
| Per request | Every new connection gets a new address | Ports 823 (HTTP) and 824 (SOCKS5), "Rotating (new IP per request)" mode |
| By time | The address stays for a set number of minutes, then changes | Ports 10000-20000, session duration from 1 to 120 minutes |
| By session number | A new number in the username gives a new address | ;sessid. in the username on ports 823/824, one address for about 30 minutes |
| Manual in the app | The app itself switches lines from a list | Generate a list of lines with different ports 10000-20000 |
You can combine the modes in one plan. For example, catalog collection goes through port 823, while checking the cart on the same website goes through a separate sticky port.
Rotation in code: examples
The simplest check is several requests in a row through port 823. The prokso.com/ip page returns the address a website sees, so each line should show a different one:
for i in 1 2 3; do
curl -s -x http://LOGIN__cr.de:PASSWORD@gw.prokso.com:823 https://prokso.com/ip
done
The same in Python. The requests.get function without a shared session opens a new connection on every call, so every request gets a new address:
import requests
proxy = "http://LOGIN__cr.de:PASSWORD@gw.prokso.com:823"
for _ in range(3):
r = requests.get("https://prokso.com/ip", proxies={"http": proxy, "https": proxy}, timeout=30)
print(r.json()["ip"])
If you use requests.Session or another client that keeps the connection open, the address will not change while the connection is alive. This is normal behavior, not a rotation failure. More examples for different languages are in the help page on the gateway and connection string.
Which tasks need rotation
- Monitoring prices and stock. Thousands of catalog pages, each one a separate independent request.
- Search results and rankings. Requests are spread across addresses in the right country instead of hitting one.
- Checking ads and localization. Each check is a new visitor from the right country.
- Checking website availability from different countries. Short requests that need no history.
Now the opposite. Logging in, a shopping cart, checkout, filling in a multi-step form - anything where the website remembers you between requests. If the address changes in the middle of such an action, the website may drop the login or ask for confirmation. Use a sticky IP for this.
How many addresses rotation gives and whether they repeat
Rotation does not hand out addresses from a short list, so there is no exact number of "your" addresses. Each new connection gets one of the pool addresses that are currently available for your conditions: type, country and, if needed, region, city or carrier. The wider the conditions, the bigger the choice.
That is why addresses can repeat: an address you got an hour ago may come up again. For collecting public data this is not a problem, since each request stands on its own. If you need two requests to be guaranteed the same address, what you need is not rotation but a sticky IP.
Timeouts, retries and speed
Every request through rotation goes through a different address, and on residential and mobile proxies also through a different device. So the response time varies from request to request: one address works over a fast connection, another over a slower one. Set timeouts with some margin, especially for mobile addresses.
On the plus side, rotation makes retries simple. If a request was dropped or returned an error, repeat it: the new connection gets a different address, and the problem of that particular device no longer affects you. Limit retries to two or three so that a failure on the website's side does not turn into a flood of requests and wasted traffic.
Common mistakes with rotation
- logging in to an account through port 823 and wondering why the website asks you to log in again every time;
- keeping one connection open and thinking rotation does not work;
- running hundreds of threads against a small website: the addresses differ, but the load on the site is the same;
- narrowing geo down to a city without need: fewer addresses match, and the traffic is counted double.
Rotation does not make requests invisible
Changing the address removes only one sign - the same IP. The website still sees the request rate, identical headers, missing cookies and behavior. A hundred requests per second from different addresses but with the same pattern is noticeable too.
So rotation works together with a moderate rate. If the website responds with 429 or shows a CAPTCHA, add pauses and reduce the number of threads. The service rules prohibit getting around restrictions that a website has placed on you specifically - see the full list in the acceptable use policy.
Rotation on different address types
Rotation in Prokso is the same for all three types: residential, mobile and datacenter proxies. The ports are the same; only the pool the address comes from changes. You pay per gigabyte, and rotation itself costs nothing extra.
The difference is in the nature of the addresses. Datacenter addresses are stable and fast, while residential and mobile ones may respond more slowly because they run through real devices. Other ways to get a new address without a proxy are compared in the article "How to change your IP address". Prices are on the rotating proxies page.
How to check that the address really changes
The simplest test is to open a service that shows your IP several times in a row through port 823 or 824. Each response should contain a different address. A list of lines is easy to run through the proxy checker: it shows the country and IP of every line.
If the address does not change, the cause is often the program. Some libraries keep one connection open (keep-alive) and send a series of requests through it. For HTTPS this is unavoidable: a CONNECT tunnel goes through one exit address until it is closed, so a new IP needs a new connection.
How much traffic rotation uses
Rotation itself costs nothing extra: you pay only for gigabytes, counted in both directions. But every new connection goes through the TLS handshake again, and a page without cache loads all its scripts and images. For data collection it pays to request only the URLs you need and skip everything else.
Precise geo also affects spending: region, city, ZIP or ASN count traffic double. If the country is enough for the task, keep only the country in the username, for example LOGIN__cr.de. The remaining traffic of each plan is shown in the dashboard, and an hourly or daily limit helps you avoid overspending.
Rotation and sticky IP side by side
| What to set | When the IP changes | Used for |
|---|---|---|
port 823 or 824 | on every request | public data collection, price monitoring |
a port in 10000-20000 | after 1-120 min, 30 by default | several steps in one account |
823/824 plus sessid in the username | after about 30 min | when the program lets you change only the username |
Further reading
FAQ
How often does the address change?
In rotation mode, on every request. If you need one address for a while, use a sticky session: from 1 to 120 minutes.
Do I need to change the proxy in my program myself?
No. The connection string stays the same, and the gateway changes the exit address.
Why doesn't the address change although I use port 823?
Most often the app keeps one connection open and sends several requests through it. A new address is given per new connection, so close the session or open a new connection for each request.
Does rotation cost extra?
No. You pay only for gigabytes in both directions. The only thing counted differently is precise geo (region, city, ZIP, ASN) - such traffic is counted double.
Can two rotating addresses repeat?
They can. The pool is shared and alive, so an address you already got may come up again. Rotation does not guarantee that all addresses in a day will be different.
Rotation or sticky session: which to choose?
Rotation for independent requests: catalogs, prices, search results. A sticky session for multi-step actions: logging in, a cart, a form.
Residential $1.59, mobile $2.50, datacenter $0.65 per GB
Sign up in a minute, get access right after payment.