# 动态 IP 无法连接

**如果您在使用动态（轮换）住宅代理**时遇到连接失败或无法连接的情况，本故障排除指南将帮助您找出常见原因以及如何解决这些问题。

动态住宅代理可能由于多种原因无法连接，包括身份验证问题、网络配置或代理设置问题。

***

#### 1. 验证身份验证方法 <a href="#id-1.-verify-authentication-method" id="id-1.-verify-authentication-method"></a>

**用户名和密码验证**

如果您使用**用户名和密码**进行身份验证：

* 请仔细核对您复制的**用户名和密码是否正确。**
* 请确保没有**隐藏空格**或拼写错误
* 确认已为正确的子账户生成凭证

**常见错误：**

复制其他子账户的凭据会导致连接错误。

***

**IP白名单认证**

如果您使用**IP 白名单**（无需凭据）：

* 请确保**将客户端/服务器的出站 IP**地址添加到白名单中**UCenter → Proxies → Rotating Residential Proxies → Use Proxy →** [**WhiteList**](https://docs.rapidproxy.io/proxies/dynamic-residential-proxy/get-proxy/api/ip-whitelisting)（UCenter → 代理 → 轮换住宅代理 → 使用代理 →白名单）

<figure><img src="https://docs.rapidproxy.io/~gitbook/image?url=https%3A%2F%2F3714437495-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FYesC7FUvYuYg4WiqU6o7%252Fuploads%252F391Kgcyvfvz5YDSS23Xq%252Fwhitelist.png%3Falt%3Dmedia%26token%3D61a0d665-2c2c-4929-9060-00b7d9e22809&#x26;width=768&#x26;dpr=3&#x26;quality=100&#x26;sign=4db44e01&#x26;sv=2" alt=""><figcaption></figcaption></figure>

* 如果您的 IP 地址发生变化（例如在动态家庭网络中），请重新添加新的 IP 地址。

来自未列入白名单的 IP 地址的请求将被阻止，导致无法建立代理连接。

***

#### 2. 检查代理端点和端口 <a href="#id-2.-check-proxy-endpoint-and-port" id="id-2.-check-proxy-endpoint-and-port"></a>

请确保代理主机和端口正确：

* **代理主机/IP地址应与“使用代理”**&#x90E8;分中显示的内容一致。
* 端口应与您选择的协议（HTTP、HTTPS 或 SOCKS5）相匹配。

主机或端口错误会导致连接失败。

***

#### 3. 使用简单工具测试连接 <a href="#id-3.-test-connection-from-a-simple-tool" id="id-3.-test-connection-from-a-simple-tool"></a>

尝试使用诸如此类的工具进行简单测试，`curl`以隔离环境问题：

```
curl -x http://YOUR_PROXY_HOST:YOUR_PORT https://example.com
```

如果此操作没有返回响应或超时，则问题可能出在：

* 网络连接
* 防火墙阻止
* 代理身份验证失败

***

#### 4. 确认流量上限（子账户） <a href="#id-4.-confirm-traffic-cap-sub-accounts" id="id-4.-confirm-traffic-cap-sub-accounts"></a>

如果您使用子账户：

* 确认**流量上限（GB）**&#x5C1A;未达到。
* 剩余流量为零的子账户可能无法建立连接。

从子账户列表中查看当前使用情况和可用流量。

***

#### 5. 检查本地网络和防火墙 <a href="#id-5.-verify-local-network-and-firewall" id="id-5.-verify-local-network-and-firewall"></a>

有时本地网络配置会阻止代理连接：

* 请确保您的网络允许到代理主机和端口的出站连接。
* 检查您的防火墙、防病毒软件或公司网络策略
* 如果您身处受限网络（例如公司、学校等），请尝试连接其他网络。

***

#### 6. 检查目标网站是否被屏蔽 <a href="#id-6.-check-for-target-site-blocking" id="id-6.-check-for-target-site-blocking"></a>

一些网站会主动屏蔽已知的代理IP地址：

* 尝试访问其他网站或服务，以确认问题是否出在特定网站。
* 如果只有一个目标出现故障，则代理服务器可能已被该特定站点屏蔽。

***

#### 7. 协议兼容性 <a href="#id-7.-protocol-compatibility" id="id-7.-protocol-compatibility"></a>

请确保代理协议与客户端配置匹配：

* **HTTP/HTTPS** — 大多数 HTTP 客户端使用
* **SOCKS5——**&#x67D0;些工具和特定自动化库需要它

协议不匹配可能导致无法连接。

***

#### 8. 尝试其他地区或服务器 <a href="#id-8.-try-a-different-region-or-server" id="id-8.-try-a-different-region-or-server"></a>

代理连接成功率可能因地区或服务器而异：

* 切换到其他**国家/地区**或**代理服务器位置**
* 部分地区可能出现暂时性的路由或性能问题。

这有助于确定问题是否具有地域性。

***

#### 9. 使用日志进行调试 <a href="#id-9.-debug-with-logs" id="id-9.-debug-with-logs"></a>

如果您的应用程序支持日志记录：

* 启用详细网络日志
* 检查是否存在连接超时、连接拒绝或身份验证错误。

日志可以揭示问题是与 DNS、超时还是凭据有关。

***

#### 10. 联系支持 <a href="#id-10.-contact-support" id="id-10.-contact-support"></a>

如果您已尝试上述步骤但仍然无法连接：

请联系 Rapidproxy 技术支持：

* Rapidproxy 网站上的**在线实时聊天**
* 请发送电子邮件**至 <support@rapidproxy.io>**

联系客服时请提供以下信息：

* 代理主机和端口
* 身份验证方法（用户名/密码或 IP 白名单）
* 客户端环境（操作系统、工具、库）
* 任何错误消息或日志输出

技术支持可以帮助诊断配置或网络问题。


---

# 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.rapidproxy.io/simplified-mandarin/gu-zhang-pai-chu/dai-li-lian-jie-wen-ti/dong-tai-ip-wu-fa-lian-jie.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.
