> For the complete documentation index, see [llms.txt](https://docs.ipwo.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ipwo.net/kai-fa-zhe-wen-dang/ip-shi-yong-ce-le.md).

# IP 使用策略

在使用代理时，不同业务场景对 IP 的要求不同。\
IPWO 提供两种常见使用策略：[**轮换 IP**](/huo-qu-yu-pei-zhi-dai-li/lun-huan-ip.md) 和 [**粘性 IP**](/huo-qu-yu-pei-zhi-dai-li/nian-xing-ip.md)。

👉 合理选择策略，可以提升成功率并降低封禁风险

***

### 🔄 [轮换 IP](/huo-qu-yu-pei-zhi-dai-li/lun-huan-ip.md)（Rotating IP）

每次请求使用不同 IP，或在短时间内自动更换 IP。

***

#### 📌 使用方式

```bash
curl -x "us.ipwo.net:7878" -U "username:password" https://ipinfo.io
```

👉 不设置 `sid` 参数时，默认使用轮换 IP

***

#### ✅ 适用场景

* 数据采集 / 爬虫
* 批量请求
* SEO / 市场调研

***

#### 💡 优点

* 降低被封风险
* 提高请求成功率
* 适合高并发任务

***

### 🔒 [粘性 IP](/huo-qu-yu-pei-zhi-dai-li/nian-xing-ip.md)（Sticky IP）

在一定时间内保持使用同一个 IP。

***

#### 📌 使用方式

```bash
curl -x "us.ipwo.net:7878" -U "username_sid_12345_time_10:password" https://ipinfo.io
```

***

#### 📌 参数说明

* `sid` → 会话标识（固定 IP）
* `time` → IP 保持时间（分钟）

👉 相同 sid 在有效时间内会分配同一个 IP

***

#### ✅ 适用场景

* 登录 / 账号操作
* 会话保持
* 需要稳定 IP 的业务

***

#### 💡 优点

* IP 稳定
* 减少登录异常
* 提升账号安全性

***

### ⚖️ 如何选择？

| 场景        | 推荐策略  |
| --------- | ----- |
| 数据采集      | 轮换 IP |
| 高并发请求     | 轮换 IP |
| 登录 / 账号操作 | 粘性 IP |
| 长时间会话     | 粘性 IP |

***

### ⚡ 使用建议

* 不确定时 → 优先使用轮换 IP
* 涉及账号 → 必须使用粘性 IP
* 避免频繁切换策略，保持稳定配置
* 参数建议逐步添加（先简单后复杂）

***

### ❗ 常见问题

#### IP 一直不变？

* 可能设置了固定 `sid`

***

#### IP 频繁变化？

* 未设置 `sid`（默认轮换）

***

#### 如何控制切换频率？

* 使用 `time` 参数控制 IP 保持时间

***

### 👉 下一步

* 查看「[参数说明](/kai-fa-zhe-wen-dang/api-shi-yong-zhi-nan/dai-li-can-shu-shuo-ming.md)」→ 了解更多控制方式
* 查看「[快速验证](/kai-fa-zhe-wen-dang/kuai-su-kai-shi/kuai-su-yan-zheng.md)」→ 测试 IP 是否生效
* 查看「[接入方式](broken://pages/FytZ1eL5v0h0ZG7guXuy)」→ 集成到代码

***

### 总结

IP 使用策略的核心是：

* 轮换 IP → 提高成功率
* 粘性 IP → 保持稳定性

👉 根据业务场景选择合适策略，是代理使用的关键

***


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.ipwo.net/kai-fa-zhe-wen-dang/ip-shi-yong-ce-le.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.
