Skip to content

How to Change / Rotate IP of Proxy

Ask AI

Ready taskDo it with me, step by step

Chat assistants

Open in ChatGPTNew tabOpen in ClaudeNew tab

Coding agents

Claude CodeOpens the desktop appCodexOpens the desktop appCursorOpens the app from the web

Copy

View as MarkdownPlain text for AI tools
See the prompt
Read https://xproxy.io/document/how-change-rotate-ip.md, the XProxy guide "How to Change / Rotate IP of Proxy". If you cannot open links, download them with curl. Then take me through it one step at a time: tell me exactly what to click or type, wait until I say it is done, and help me when what I see is different from the guide. Start by asking what I have (hardware, XProxy version, what I see now).
Other XProxy guides, each with a Markdown copy at its URL + .md, are listed in https://xproxy.io/llms.txt.

The app opens with the prompt filled in. Nothing runs until you press Enter.

Get a new mobile IP when you want one: with one click, on a timer, or from your own script.

You need: a Basic plan or higher (the Free plan has no IP rotation) and a modem that is online in Proxy Management.

In short

What it does

The modem reconnects and the carrier gives it a new An IP address is the number that tells a website where a connection comes from. It works a bit like a return address.. Your proxy port stays the same.

Three ways

Click Rotate, set a timer, or call a link from your bot. Pick one below.

A few seconds

It depends on the modem and the carrier. Scripts should check the status, not wait a fixed time.

Change the IP

How do you want to change the IP?

Step 1 of 2

Click Rotate

Open Proxy Management. On the row of your proxy, click Rotate 1.

To change every modem at once, click Rotate All 2.

Nothing happens? The Free plan has no IP rotation. Rotation needs a Basic plan or higher.

How long does a rotation take?

There is no single number. The panel answers at once, then the modem reconnects. The time depends on the kind of modem and on the carrier.

ModemWhat to expect
Android phone (NextGen app)About 5 to 6 seconds on our test phones: the airplane-mode time (3 seconds by default) plus about 2 seconds to reconnect. A shorter airplane time is faster, but some carriers then keep the same IP.
XH22 dongleMethod 1 · Fast & stable is the quickest. Methods 2 to 4 are slower. Method 5 · Offline hold keeps the modem off for a time you set (150 seconds by default) and your proxy is offline for that time.
Other dongles and routersIt depends on the model and on the method you pick in Rotation Methods.

To change these: Proxy Management → Rotation Settings sets the delays, and General Settings → Rotation Methods picks the method for each kind of dongle.

Rotation Settings window, General tab: Delay before rotation and Prevent rotation marked (demo data)
Rotation Settings → General: ① Delay before rotation · ② Prevent rotation (the shortest time between two rotations of one port). The Dongle and Phone tabs have Delay during rotation.

Still the same IP?

You seeWhat to do
The IP did not changeSome carriers hand back the same IP when the modem reconnects fast. Open Rotation Settings → Duplicate IP and turn on Rotate if same IP: the proxy then rotates again by itself.
Still the same IP on an XH22 dongleIn General Settings → Rotation Methods, try Method 5 · Offline hold. The carrier then gives a new IP after a longer offline time.
A rotation does not run right after another onePrevent rotation sets the shortest time between two rotations of the same port. Lower it in Rotation Settings → General.
need_upgradeYour plan has no IP rotation. See Manage your subscription.
modem_resettingA rotation is already running on that modem. Wait for it to end.
A link from outside your network does not openThe link still has your local address. Set a public address in Proxy Settings → Address.

Let your customers rotate

Selling proxies on the Business plan? Every customer proxy has its own token. The customer rotates their own proxy without your panel login:

Terminal
curl "http://your-proxy-host/selling/rotate?token=TOKEN"

Per-port logins and the other customer links are in How to use the Selling Platform and in HTTP & SOCKS5 proxy setup.

Developer API

The same calls the panel uses. The base URL is the address of your XProxy box, for example http://192.168.1.100 or http://myproxy.duckdns.org.

bash
# by proxy (host:port)
curl 'http://192.168.1.100/api/v1/rotate_ip/proxy/localhost:4001'

# by position (1 = first modem)
curl 'http://192.168.1.100/api/v1/rotate_ip/position/1'

# the same call as the rotation link
curl 'http://192.168.1.100/reset?proxy=192.168.1.100:4001'

# every call answers at once:
# {"status": true, "msg": "command_sent"}

msg can also be need_upgrade (Free plan), modem_resetting (a rotation is already running) or slot_not_found.

Login: the rotation and status calls work without a login unless Force API Auth is on (General Settings → System Setting). Then add your panel login, for example curl -u USER:PASS ….
The HTTP, SOCKS5, VLESS and VPN ports of one modem share its IP. A rotation changes the IP for all of them.

What next?

Tools that call the link for you, and how to read the proxy list.

Still stuck?A technician can look at your device with a one-time PIN, or chat with us on Telegram.