Sessions
Sessions are a powerful feature that can greatly enhance specific use cases.
By default, our proxy rotates your IP address with each request. However, using sessions allows you to override this behavior.
To maintain the same IP address for all requests to a website, simply set a session name, such as user_XXXX,session_twitter1
.
Our proxy server will automatically assign and lock an IP address for that session, ensuring consistent IP across requests. For example, naming a session twitter1
will freeze the IP and associate it with that identifier.
Why name sessions? Naming sessions allows you to manage multiple concurrent sessions effectively. This means you can easily switch between different IPs, giving you the flexibility to navigate seamlessly across various configurations.
curl -v --proxy "http://user_XXXX,session_twitter1:YOUR_PASSWORD@portal.anyip.io:1080" http://ip-api.com/
If you’d like to use the same IP (if available), you’ll get the same IP by specifying the same session name.
Duration of a session
You can customize the session duration by appending sesstime_10
(or any desired value) to your username. For example, using sesstime_10
sets the session duration to 10 minutes.
You can select a duration ranging from 1 to 10,080 minutes.
curl -v --proxy "http://user_XXXX,session_twitter2,sesstime_10:YOUR_PASSWORD@portal.anyip.io:1080" http://ip-api.com/
After 10 minutes, the session would expire, and then a new session would be created from a different IP picked from our pool.
Do not auto-replace the IP when it disconnects
We do not have control over IP disconnections. If you’re using a session and the assigned IP disconnects, we will automatically assign you a new IP.
However, if you set the sessreplace_false
flag, the proxy will return an error message, peer_not_found
, instead of assigning a new IP.
This option is useful when you want to maintain a unique IP for the duration of a session.
curl -v --proxy "http://user_XXXX,session_twitter2,sesstime_10,sessreplace_false:YOUR_PASSWORD@portal.anyip.io:1080" http://ip-api.com/
Avoid IP Collision
Sessions are widely utilized in browsers such as MultiLogin, Dolphin, and GoLogin, which facilitate seamless session management.
For example, if you’re managing multiple Facebook Ads accounts for various clients, it’s crucial to avoid using the same IP across different accounts.
This is where anyIP becomes invaluable. By using the sessipcollision_strict
flag when creating a new session, anyIP ensures that no two session names will share the same IP address. You won’t get the same IP across different session names.
Same ASN
Whenever an IP disconnects abruptly, anyip’s intelligence will try to find the closest IP that matches the previous IP.
It will be based on these criteria:
- ASN: if the same ASN is available, anyIP will pick it
- Country or pool: the same country or pool will be matched if they’ve been specified.
- GPS location: will geographically pick the closest peer from the previous one
If you want to ensure the same ASN will replace the previous peer, please add the flag sessasn_strict to your username.
curl -v --proxy "http://user_XXXX,session_twitter3,sessasn_strict:YOUR_PASSWORD@portal.anyip.io:1080" http://ip-api.com/
Mobile IPs can sometimes change as the phone changes antenna or gets assigned a new IP. When it changes, we set an IP from the same area and ISP.
With a sticky session, the IP is assigned to you as long as it’s available. Still, when the IP disconnects, we transfer you an IP in the same city with the same ISP, so it’s completely undetectable and doesn’t raise any flag.
This is the usual behavior you would get if you use your 4G internet connection from your phone; your IP naturally changes throughout the day but stays in the same region with the same ISP.
Change IP URL / Rotation link
You can easily rotate your IP address by using our change IP URL (rotation link).
You will find the link on your dashboard under the “Proxy credentials” section.

This feature can be used in different ways, such as:
- clicking the button available from the dashboard;
- accessing the URL directly using your web browser;
- calling this URL from a script/terminal;
- setting it up on the software you’re using;
Here is a quick example using the [session_name] set to “twitter3”
Username:
user_XXXX,session_twitter3
Your rotation link need to refer to your session name, it will look like this:
Change IP URL:
https://dashboard.anyip.io/api/proxy_accounts/[proxy_id]/invalidate/[hash]/session/twitter3