# Rotating proxy

> A rotating proxy automatically changes the IP address your traffic leaves from, either on every request or after a set time, so requests are spread across many different IPs.

URL: https://residentialips.org/glossary/rotating-proxy/  
Updated: 2026-11-28  
Publisher: ResidentialIPs Editorial Team

Also known as: rotating IP proxy, rotating residential proxy, IP rotation proxy

## Key takeaways

- You connect to one gateway address and the provider assigns a different exit IP from its pool.
- Rotation can be per request, timed (for example every 5 or 10 minutes) or on demand.
- It spreads load so no single IP hits a website’s rate limits.
- Rotation breaks logins and multi-step flows unless you use sticky sessions.
- Rotating IPs do not hide unusual headers, fingerprints or request patterns.

## What is a rotating proxy?

A rotating proxy is a proxy service that hands you a new exit IP automatically. Instead of managing a list of hundreds of addresses, you point your client at a single gateway, and the provider picks a fresh IP from its [proxy pool](https://residentialips.org/glossary/proxy-pool/) according to rules you set. Most rotating products are residential or [mobile](https://residentialips.org/glossary/mobile-proxy/), but rotating datacenter pools also exist.

The opposite is a [static proxy](https://residentialips.org/glossary/static-proxy/), which keeps one IP for as long as you rent it.

## How rotation works

1. Your client sends a request to the gateway, for example `gate.provider.example:7777`.
2. The gateway reads your settings, usually from the username: country, city, session ID and session length.
3. If the request has no session ID, or the session has expired, the gateway picks a new exit node.
4. The request leaves from that exit’s IP. The next request may leave from a completely different household, city or ISP.

This [backconnect](https://residentialips.org/glossary/backconnect-proxy/) design means rotation happens on the provider’s side. Your code never needs to know which IPs exist.

## Rotation modes

| Mode | How it works | Typical use |
| --- | --- | --- |
| Per request | Every request gets a new IP | Scraping many independent pages |
| Timed | IP changes every N minutes | Light browsing sessions, monitoring |
| [Sticky session](https://residentialips.org/glossary/sticky-session/) | Same IP while a session ID is reused | Logins, carts, paginated results |
| On demand | You call an API or link to change IP | Mobile proxies, manual testing |
| Port-based | Each port maps to a session or a location | Tools that cannot change usernames |

## Rotating vs static proxies

|  | Rotating | [Static](https://residentialips.org/glossary/static-proxy/) |
| --- | --- | --- |
| Exit IP | Changes automatically | Fixed |
| Number of IPs | Thousands to millions | The IPs you rent |
| Billing | Usually per GB | Usually per IP |
| Good for | Scraping at scale, rank tracking | Accounts, allowlists, long sessions |
| Weak at | Anything that expects one IP | Large jobs that need many IPs |

## When to use a rotating proxy

- **[Web scraping](https://residentialips.org/glossary/web-scraping/):** collecting thousands of product or listing pages without tripping per-IP rate limits.
- **SERP tracking:** each keyword and location from a different IP.
- **Price monitoring:** checking many stores and regions on a schedule.
- **Ad verification:** viewing ads from many locations as ordinary users.

## When not to use one

Any flow where the website links several requests to one visitor: logging in, adding to cart, filling a multi-page form, or paging through search results with a session cookie. If the IP changes halfway, the site may log you out or flag the session. Use a sticky session for minutes, or an ISP proxy for days.

## Rotating sensibly

Rotation is not a disguise on its own. If every request has a new IP but the same unusual user agent, the same TLS fingerprint and machine-like timing, [bot detection](https://residentialips.org/glossary/bot-detection/) still notices. Good practice:

1. Keep one IP per logical session and rotate between sessions.
2. Keep cookies with the IP they were issued to.
3. Vary request timing and avoid bursts.
4. Retry failed requests on a new IP, but stop and investigate if failures climb.

## Rotating proxy example

Most rotating services work through a single gateway. In this sketch the provider rotates the exit IP on every new connection:

```
import requests

proxy = "http://USER:PASS@gate.provider.example:7777"
for url in urls:
r = requests.get(url, proxies={"http": proxy, "https": proxy}, timeout=30)
print(url, r.status_code)
```

Two details trip people up. Libraries that reuse connections (keep-alive) may send several requests through the same tunnel, and so through the same IP, even on a “per request” plan. And some providers rotate per connection rather than per HTTP request. If you need a guaranteed new IP, open a new connection or add a fresh session ID to the username.

## How to measure whether rotation is working

1. Send 20 to 50 requests to an IP echo endpoint through the gateway.
2. Count the distinct IPs that come back, and how many of them share a /24 subnet.
3. Repeat the test with your target country or city filter, because pool depth varies a lot by location.
4. Check the [ASN](https://residentialips.org/glossary/asn/) of each IP. A residential pool that returns hosting ASNs is mislabelled.

A healthy result shows few repeats and a spread of subnets. Many repeats in a small country can be normal, since the pool there is simply smaller.

## Rotating proxies and rate limits

Rotation spreads requests across IPs, but it does not remove the reason sites rate limit. Many anti-bot systems also count requests per session, per fingerprint and per account. Sending the same headers and cookies from thousands of IPs looks less like many visitors and more like one bot with many addresses. Pair rotation with sensible request rates, exponential backoff on errors and respect for robots.txt.

## Frequently asked questions

### What does a rotating proxy do?

It gives your requests a different IP address automatically, either every request or after a set time, so traffic is spread across many IPs instead of one.

### How often do rotating proxies change IP?

It depends on your settings. Per-request rotation changes IP every time. Sticky sessions keep an IP for a set period, commonly between 1 and 30 minutes, unless the exit device disconnects first.

### Are rotating proxies good for social media accounts?

Usually not. Accounts expect a consistent IP. Use a static ISP proxy or a long sticky session per account instead.

### What is the difference between a rotating proxy and a VPN?

A VPN gives one device one exit IP at a time. A rotating proxy can give every request a different IP and lets you run many sessions in parallel.

### Do rotating proxies prevent bans?

They reduce per-IP limits and blocks, but they do not fix behaviour that looks automated. Sites can still detect and block traffic based on fingerprints and patterns.

### Can I choose the country of each rotated IP?

Usually yes. Providers accept country, and often city, state or ASN, as parameters in the username or as separate ports. Narrow filters mean a smaller pool and more repeated IPs.

## Sources and further reading

- [RFC 6585: Additional HTTP Status Codes, including 429 Too Many Requests (IETF)](https://www.rfc-editor.org/rfc/rfc6585)
- [RFC 9110: HTTP Semantics (IETF)](https://www.rfc-editor.org/rfc/rfc9110)
- [Requests library: proxies (official documentation)](https://requests.readthedocs.io/en/latest/user/advanced/#proxies)
