IP Control

Instructions on how to rotate proxies for changing IP addresses and how to use static IPs for maintaining the same IP.

Pay per IP users can download the proxy list via the dashboard.

Proxy Rotation

Datacenter Proxies support proxy rotation. To use this feature you need to use port number 8000. With each new request you will use a random IP.

Code examples

curl -x dc.oxylabs.io:8000 -U "user-USERNAME:PASSWORD" https://ip.oxylabs.io/location 

For the pay per IP billing type, each request will use a random IP from your Proxy list via port 8000.

For the pay per traffic billing type, each request will use a random IP from the full pool via port 8000.

Static Sessions

Depending on your billing type, you can utilize specific ports to maintain a consistent IP address for your requests.

Datacenter Proxies per IP

For the pay per IP billing type, use a specific static port to make requests. You will find port numbers in your proxy list.

Here is an example using a port (8001) for a static session:

curl -x dc.oxylabs.io:8001 -U user-USERNAME:PASSWORD https://ip.oxylabs.io/location 

Find more code examples in other code languages below:

curl -x dc.oxylabs.io:8001 -U user-USERNAME:PASSWORD https://ip.oxylabs.io/location 

For a rotating or static session in a specific country, refer to Select country page.

Datacenter Proxies per traffic

For the pay per traffic billing type, a static port within the range of 8001 to 63000 (generate a random number within this range) will be used to make requests. Each request will receive a random IP from the pool, but the IP will remain consistent for the duration of the session.

Here is an example using a random port (35467) for a static session:

curl -x dc.oxylabs.io:35467 -U user-USERNAME:PASSWORD https://ip.oxylabs.io/location 

Find more code examples in other code languages below:

curl -x dc.oxylabs.io:35467 -U user-USERNAME:PASSWORD https://ip.oxylabs.io/location 

Last updated