# 连接类型

### 轮换

每次新请求时，IP 地址会自动更换。

您应使用：

<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>用于 HTTP/HTTPS</td><td><strong>823</strong> 端口</td><td></td><td></td></tr><tr><td>用于 SOCKS5</td><td><strong>824</strong> 端口</td><td></td><td></td></tr></tbody></table>

<figure><img src="/files/6e2be9565295fc747de5cf54bb3d0b532721b02e" alt=""><figcaption></figcaption></figure>

***

### **粘性**

粘性代理基于端口。IP 地址在一段时间内绑定到特定端口。&#x20;

粘性代理的轮换间隔可以从 1 到 120 分钟不等，平均持续时间为 30 分钟。

对于粘性连接，您可以使用从 **10000** 到 **20000**.

HTTP 粘性代理示例：

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

SOCKS5 粘性代理示例：

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

{% hint style="info" %}
如果未为粘性连接指定轮换间隔或将其设置为 "0"，默认间隔为 30 分钟。
{% endhint %}

***

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

关于选择最佳代理类型的博客文章：

[轮换代理还是粘性代理：如何选择合适的选项](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/dataimpulse-documentation-zh-cn/dai-li/lian-jie-lei-xing.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.
