# Types of connections

### Rotating

The IP address changes automatically with each new request.

You should use:

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td>For HTTP/HTTPS</td><td><strong>823</strong> PORT</td><td></td><td></td></tr><tr><td>For SOCKS5</td><td><strong>824</strong> PORT</td><td></td><td></td></tr></tbody></table>

<figure><img src="/files/Ojc40QXPJGmXgKHoRZ4c" alt=""><figcaption></figcaption></figure>

***

### **Sticky**

Sticky proxies are port-based. IP addresses are bound to a specific port for a period of time.&#x20;

The rotation interval for sticky proxies can range from 1 to 120 minutes, with the average duration being 30 minutes.

For sticky connections, you can use ports from **10000** to **20000**.

An example of the HTTP sticky proxy:

```
curl -x "http://login:password@gw.dataimpulse.com:10000" https://api.ipify.org/
```

An example of the SOCKS5 sticky proxy:

```
curl -x "socks5://login:password@gw.dataimpulse.com:10000" https://api.ipify.org/
```

{% hint style="info" %}
If no Rotation Interval is specified for a Sticky connection or is set to "0", the default interval will be 30 minutes.
{% endhint %}

***

<figure><img src="/files/wE760bXHYAiqMJLxxWZn" alt=""><figcaption></figcaption></figure>

Blog article on selecting the best proxy type:

[Rotating or Sticky Proxies: How to Choose the Right Option](https://dataimpulse.com/blog/rotating-or-sticky-proxies-how-to-make-the-right-choice/)

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.dataimpulse.com/proxies/types-of-connections.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
