🌍 Geographic Targeting
X2Proxy gives you control over the geographic origin of your proxy IP addresses. You can target at the country level through the region_ parameter in the proxy username.
Coverage
- 200+ countries worldwide
- Country-level targeting available for all residential pools
How Targeting Works
Geographic parameters are embedded in the username field of the proxy URL using the region_XX format, separated by semicolons.
http://pool_category;LOGIN;region_XX:PASSWORD@pr.x2proxy.com:2222Country Targeting
Use the ISO 3166-1 alpha-2 two-letter country code with the region_ prefix.
# United States
http://pool_category;john;region_US:pass123@pr.x2proxy.com:2222
# Germany
http://pool_category;john;region_DE:pass123@pr.x2proxy.com:2222
# Japan
http://pool_category;john;region_JP:pass123@pr.x2proxy.com:2222
# United Kingdom
http://pool_category;john;region_GB:pass123@pr.x2proxy.com:2222Popular country codes:
| Country | Code | Country | Code |
|---|---|---|---|
| United States | US | France | FR |
| United Kingdom | GB | Canada | CA |
| Germany | DE | Australia | AU |
| Japan | JP | Brazil | BR |
| Netherlands | NL | India | IN |
| Singapore | SG | South Korea | KR |
See the full list of supported countries in your Dashboard → Proxy Generator → Country selector.
Targeting Combinations
Beyond a single country code, you can narrow targeting down using two independent combinations:
- Country + State + City — drill down geographically, from country to a specific state/region to a specific city.
- Country + ASN — target a specific network provider (ASN) within a country, instead of a specific city.
These two combinations are independent of each other: narrow down either by physical location (State + City) or by network/provider (ASN), not both at once.
No Targeting (Global Random)
Omit the region_ parameter to receive a random IP from the global pool:
http://pool_category;john:pass123@pr.x2proxy.com:2222Combining With Sessions
Country targeting works with both rotating and sticky sessions:
# Sticky session in the US — same IP held for up to 24 hours
http://pool_category;john;region_US;session_nysess01;ttl_24h:pass123@pr.x2proxy.com:2222
# Rotating session in Germany — new German IP on each request
http://pool_category;john;region_DE:pass123@pr.x2proxy.com:2222
# SOCKS5, sticky session, UK, 48 hours
socks5://pool_category;john;region_GB;session_uksess01;ttl_48h:pass123@pr.x2proxy.com:2222📝 Note
If no IP is available in the requested country at the moment of connection, the proxy won't fall back to another country — the connection is simply dropped. Check country availability ahead of time in the Dashboard → Proxy Generator.
Next: Rotating Sessions