If you want to access IPs from specific locations, you have to provide a country- parameter with a two letter country code in your username Here is the list of country parameters:
Country
Country code
For example, if you want to rotate United States proxy pool only, use rotating port 8000 together with a parameter country-US in your username:
usingSystem.Net;// .NET currently does not support HTTPS proxiesvar proxy =newWebProxy { Address =newUri("dc.oxylabs.io:8000"), Credentials =newNetworkCredential( userName:"user-USERNAME-country-COUNTRY", password:"PASSWORD" )};var httpClientHandler =newHttpClientHandler {Proxy = proxy};usingvar client =newHttpClient(handler: httpClientHandler, disposeHandler:true);var result =awaitclient.GetStringAsync("https://ip.oxylabs.io/location");Console.WriteLine(result);
Differences between subscription methods
Datacenter per IP users who provide rotating port and country parameter will receive a random IP from the selected country from their Proxy list with each new request.
Datacenter per traffic users who provide rotating port and country parameter will receive random IP from the selected country from the entire proxy pool.
We use theMaxMind GeoIP2 database to determine IPs location.