Country Targeting and Sessions
Learn how country codes, sticky session IDs, and session durations work in BytesFlows rotating residential proxy usernames.
After changing the country or session type in the Residential Proxies dashboard↗, copy the new full proxy username. The username passes these settings to the gateway. Keep the proxy host, port, and sub-user password from your existing configuration.
Username parameters
| Component | Purpose | Example |
|---|---|---|
u-{sub-user} | Required for proxy authentication. Use the selected proxy sub-user's username. | u-demo-user |
-loc-{country code} | Select a country. Omit it for automatic selection. Use the country list in the Endpoint Generator. | -loc-US |
-t-{minutes} | Request a sticky-session duration. The parameter reference lists a range of 1–120 minutes. The generator offers 10, 30, 60, and 120 minutes. | -t-10 |
-s-{session ID} | Identify a sticky session. Reuse the same ID to continue it. | -s-check001 |
The current dashboard offers country-level targeting. Use these examples to read the generator's output, then substitute your own proxy sub-user and password when connecting.
These examples show automatic global rotation, rotation in the United States, and a US sticky session with a requested duration of 10 minutes. In rotating mode, omit -t- and -s-. In sticky mode, keep the generator's parameter order.
Choose and test a session mode
- Rotating sessions suit independent requests. To check rotation, run a few separate cURL commands and record the exit IP from each request. A repeated IP by itself is insufficient evidence of a rotation problem.
- Sticky sessions suit multi-step tasks that need continuity. Keep the same full username, password, and country for the workflow. Test the exit IP within the requested window and handle reconnection if the session expires or the node changes.
The generator supplies a session ID. Save it with the current task configuration and check it when you reopen the generator. Use a new ID to start another sticky session.
Start with the quickstart, then use the integration examples for your client.
Rotating Residential Proxy Quickstart
Create a traffic-based proxy user, select a country, protocol, and session type, and verify your BytesFlows exit IP with cURL.
Integration and Troubleshooting
Connect to BytesFlows residential proxies over HTTP or SOCKS5 using cURL or Python, and troubleshoot authentication, timeouts, and exit-country issues.