Skip to main content
Auto-Replace Sticky IP
Evan avatar
Written by Evan
Updated over a week ago

Quick Example using the Proxyrack API:

loose:

username-autoReplace-loose

OR

"username;autoReplace=loose"

strict:

username-autoReplace-strict

OR

"username;autoReplace=strict"

any:

username-autoReplace-any

OR

"username;autoReplace=any"

none:

username-autoReplace-none

OR

"username;autoReplace=none"

A sticky port will connect you to an external IP address that will remain static for a set amount of time and then rotate. If the IP goes offline in the middle of your rotation interval, your auto-replace setting determine what happens next. You can set the auto-replace setting in one of two ways:

  1. Through your dashboard

  2. Using the Proxyrack API

There are 4 options for auto-replace:

  1. "loose": If the exit node (IP address) goes offline, the proxy server will automatically replace the IP with an IP from the same country.

  2. "strict": If the exit node (IP address) goes offline, the proxy server will attempt to replace the IP with an IP from the same city, ISP, and country. If this is not possible, the IP will not be replaced and any subsequent requests will result in an error message.

  3. "any": If the exit node (IP address) goes offline, the proxy server will connect to a random new IP address, not taking into consideration the IP address that you were previously connected to.

  4. "none": If the exit node (IP address) goes offline, the proxy server will not automatically replace the IP address. Any subsequent requests on the port will result in an error message.

If you are using the old "true", "false", or "any" auto-replace settings, these will still work the same as they have. You do not need to change anything if you want to still use the old options.

Dashboard

In your dashboard, select the proxies you would like to use from the left-hand navigation menu. Once there, click on the "Proxy Endpoints" tab and make sure that "Sticky Ports" are highlighted, like you see below.

Scroll down the page until you see the "Set default port settings" section and then click on "Add new port".

A window will appear, and you will see a "Autoreplace" setting, like in the screenshot below.

Click on the box and you will see a dropdown appear. Select your desired auto-replace setting from the dropdown.

Type in the port number that you would like to save this setting for and click "Save". You can also select "Apply as default for all ports" to make this the default setting for all of your ports.

In the "Set default port settings" table, you will then see confirmation that the auto-replace settings have been saved successfully for the port you have selected.

Proxyrack API

You can set the auto-replace setting by adjusting your username wherever you have configured your proxies using either the dash syntax or the semicolon syntax:

  1. Dash Syntax: Add "-autoReplace-{desired setting}" after your username

  2. Semicolon Syntax: Add ";autoReplace={desired setting}" after your username

Please note that cURL is used below as an example. You do not need to use cURL in order to set auto-replace. You can do this wherever you have configured your proxies, such as in a browser, code, etc.

Examples

Unmetered Residential:

Please note: Unmetered Residential proxies are no longer available for purchase. Existing subscriptions will continue to work, however.
"=" Syntax: ​curl -x unmetered.residential.proxyrack.net:10000 -U 'username;autoReplace=strict:password' http://example.com

"-" Syntax: ​curl -x unmetered.residential.proxyrack.net:10000 -U 'username-autoReplace-strict:password' http://example.com

Live example here.

Premium Residential:
​"=" Syntax: ​curl -x premium.residential.proxyrack.net:10000 -U 'username;autoReplace=strict:password' http://example.com

"-" Syntax: ​curl -x premium.residential.proxyrack.net:10000 -U 'username-autoReplace-strict:password' http://example.com

Live example here.

Private Unmetered Residential:
​​"=" Syntax: ​curl -x private.residential.proxyrack.net:10000 -U 'username;autoReplace=strict:password' http://example.com

"-" Syntax: ​curl -x private.residential.proxyrack.net:10000 -U 'username-autoReplace-strict:password' http://example.com

Live example here.

USA Rotating Datacenter:
​​"=" Syntax: ​curl -x usa.rotating.proxyrack.net:10000 -U 'username;autoReplace=strict:password' http://example.com

"-" Syntax: ​curl -x usa.rotating.proxyrack.net:10000 -U 'username-autoReplace-strict:password' http://example.com

Live example here.

Global Rotating Datacenter:
​​"=" Syntax: ​curl -x global.rotating.proxyrack.net:10000 -U 'username;autoReplace=strict:password' http://example.com

"-" Syntax: ​curl -x global.rotating.proxyrack.net:10000 -U 'username-autoReplace-strict:password' http://example.com

Live example here.

Did this answer your question?