Skip to content

🔗 Proxy Format ​

X2Proxy uses a structured proxy URL format where targeting and session parameters are embedded directly in the username field. This allows full control over geography, session type, and TTL without changing the host or port.

Base Format ​

PROTOCOL://pool_TYPE;LOGIN;PARAMETERS:PASSWORD@pr.x2proxy.com:2222
ComponentDescription
PROTOCOLhttp or socks5
pool_TYPEPool identifier (e.g., res1) — shown in your dashboard
LOGINYour account username
PARAMETERSOptional targeting and session parameters, separated by ;
PASSWORDYour account password
pr.x2proxy.comProxy gateway hostname
2222Unified port for all protocols

Available Parameters ​

Parameters are appended to the username after ; separators:

ParameterFormatExample
Country / Regionregion_XXregion_US
Statestate_STATEstate_california
Citycity_CITYcity_losangeles
ASN / Providerasn_ASNasn_as7018
Sticky Session IDsession_IDsession_abc123
Session TTLttl_Xhttl_24h, ttl_120h

Country codes follow the ISO 3166-1 alpha-2 standard (e.g., US, DE, GB, FR, JP). TTL is specified in hours. Maximum sticky session duration is 120 hours (5 days).

Format Examples ​

Rotating proxy — random global IP ​

http://pool_category;john:pass123@pr.x2proxy.com:2222

Rotating proxy — US only ​

http://pool_category;john;region_US:pass123@pr.x2proxy.com:2222

Sticky session — US, 24 hours ​

http://pool_category;john;region_US;session_mysession01;ttl_24h:pass123@pr.x2proxy.com:2222

Sticky session — Germany, 5 days (120 hours) ​

http://pool_category;john;region_DE;session_berlin42;ttl_120h:pass123@pr.x2proxy.com:2222

SOCKS5 — UK targeting, rotating ​

socks5://pool_category;john;region_GB:pass123@pr.x2proxy.com:2222

SOCKS5 — sticky session, France ​

socks5://pool_category;john;region_FR;session_paris01;ttl_48h:pass123@pr.x2proxy.com:2222

Using the Proxy Generator ​

All of the above formats are generated automatically in Dashboard → Proxy Generator. Select your pool, protocol, targeting options, and session type visually — the generator outputs the complete proxy string ready to copy. Bulk proxy list generation is also available.


Next: Authentication