Sessions are a crucial piece of information that could unlock superpowers for some of your scenarios.
By default, our proxy will rotate your IP address upon each requests, session can be used to change that behavior.
In case you’d like to make sure that all the requests that goes on a website will keep the same IP, you can set a session name such as:
user_XXXX,session_twitter1 our proxy server will automatically freeze that IP for you and name it
Why would you name session? Because you can specify as many as concurrent sessions, which means, if you’d like to jump back and forth different IP, anyip offer you that possibility.
curl -v --proxy "http://user_XXXX,session_twitter1:[email protected]:1080" http://ip-api.com/
If you’d like to use the same IP (if available), by specifying the same session name, you’ll get the same IP.
Duration of a session
You can choose to make a session shorter, for instance, by providing
sesstime-10 to your username, that would set the session duration to 10 minutes.
You can provide and choose a value from 1 to 10,080 seconds.
curl -v --proxy "http://user_XXXX,session_twitter2,sesstime_10:[email protected]:1080" http://ip-api.com/
After 10 minutes, the session would expire, then a new session will be created from a different IP picked among our pool.
Do not Autoreplace the IP when it disconnects
We don’t have the control over IP disconnections. You may be using a session, and the IP decides to disconnect.
If that IP is not available anymore, we’ll automatically re-attribute you a new one, unless you specify the flag
sessreplace_false the proxy will return you the error message
That might be helpful if you want to ensure to keep a unique IP for a session.
curl -v --proxy "http://user_XXXX,session_twitter2,sesstime_10,sessreplace_false:[email protected]:1080" http://ip-api.com/
Avoid IP Collision
Sessions are often used with browsers a la MultiLogin, Dolphin, GoLogin, etc. these softwares allows you to manage your sessions easily.
Let’s say you managing different Facebook Ads account for different clients.
You don’t want the same IP to be found across different Facebook accounts.
Anyip can help you with that, whenever you use the flag
sessipcollision_strict , to create a new session, anyip ensures that you won’t get the same IP across different session names.
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’d like to make sure that no different ASN will be replacing the previous peer, feel free to add the flag
sessasn_strict to your username.
curl -v --proxy "http://user_XXXX,session_twitter3,sessasn_strict:[email protected]:1080" http://ip-api.com/
Mobile IPs can sometimes change as the phone change antenna or get assigned a new ip when it changes we always assign an IP from the same area and isp.
With sticky session meaning the IP is assigned to you as long as it’s available but in the case when the IP disconnect we assign you an IP in the same city with the same ISP so it’s completely undetectable and doesn’t rise any flag.
This is the usual behaviour that you would get if using your 4G internet connection from your phone, your IP naturally changes throughout the day but stay in the same region with the same ISP.