Step 2.2. Proxy ports: sticky and rotating sessions
To form correct domain:port format you need proxy address and port number. Port number is determined by session type. Example: random country rotating session with domain:port format will look like this: gate.smartproxy.com:7000
With our proxies, you can choose between two kinds of sessions:
1. Rotating IP sessions.
IPs change with each new request. For instance, you open a website with one IP, but when you do any further action, such as reload the website or open a link, your IP will have already changed.
2. Sticky IP sessions
Your new IP address will not change with each new request but will stay the same for a longer period (RESI up to 10min, DC 30min). The countdown starts with the first request sent. A session gets terminated if no response is received from an IP address or if there’s no activity for 60s for that session. Once a session gets terminated – you will receive a new sticky IP and same rules apply again.
Sticky session provides you with port range. If you use sticky session you can use any port(s) in ports range to connect to the proxy server (endpoint). You can also download your filtered list of domain:ports by clicking on ‘Download the list’.
The most popular countries have up to 10,000 ports for sticky IPs. For example, it.smartproxy.com: 25762 will give the same Italian IP address for up to 10 minutes. Please note that this endpoint (it.smartproxy.com) has 10,000 sticky ports, from 20001 to 29999.
You can find both proxy addresses and ports under ‘Proxy server’ tab in the dashboard. There, accordingly to your plan (RESI/DC) you can filter proxy address and ports and later on use it within your tool / bot or cURL.