> 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/dai-li-jian-ce-yu-yin-si-an-quan/webrtc-xie-lou-jian-ce.md).

# WebRTC泄露检测

在使用代理或指纹浏览器时，即使代理已配置成功，也可能出现：

```
真实 IP 被暴露（WebRTC 泄露）
```

这会导致：

* 平台识别真实地区
* 账号关联风险增加
* 代理“看似生效但实际无效”

***

## 🌍 一、什么是 WebRTC 泄露？

WebRTC 是浏览器用于：

* 视频通话
* 实时通信
* P2P 连接

的一项技术。

但在某些情况下，它会：

👉 直接暴露你的真实公网 IP

即使你正在使用代理：

```
浏览器 → 代理IP（表面）
浏览器 → WebRTC → 本机IP（泄露）
```

***

## ⚠️ 二、WebRTC 泄露会带来什么问题？

如果发生泄露：

| 风险     | 影响                   |
| ------ | -------------------- |
| IP 关联  | 多账号被识别               |
| 地区不一致  | Facebook / TikTok 风控 |
| 代理失效误判 | 业务误操作                |
| 数据不可信  | 采集结果异常               |

***

## 🧪 三、如何检测 WebRTC 是否泄露？

***

### ✔ 方法1：在线检测（推荐）

访问：

```
https://browserleaks.com/webrtc
```

或：

```
https://ip8.com/webrtc-test
```

***

### ✔ 检测结果说明：

页面通常会显示：

* Public IP（公网IP）
* Local IP（本地IP）
* WebRTC IP

***

### ✔ 判断标准：

| 结果      | 是否安全   |
| ------- | ------ |
| 只显示代理IP | ✔ 安全   |
| 出现本机IP  | ❌ 泄露   |
| 显示多个IP  | ❌ 风险较高 |

***

## 🌐 四、浏览器如何检测（简单方法）

打开测试页面：

```
https://browserleaks.com/webrtc
```

重点看：

* "Detected IP addresses"
* "Public IP"

***

### ✔ 正常情况：

```
只显示代理IP（例如美国IP）
```

***

### ❌ 异常情况：

```
同时出现：
- 代理IP
- 本机IP（中国IP）
```

👉 表示发生泄露

***

## 🖥 五、不同浏览器风险差异

| 浏览器     | 泄露风险   |
| ------- | ------ |
| Chrome  | 中等     |
| Edge    | 中等     |
| Firefox | 较低     |
| 指纹浏览器   | 低（可配置） |

***

## ⚙️ 六、如何防止 WebRTC 泄露？

***

### ✔ 方法1：关闭 WebRTC（推荐）

#### Chrome 设置方式：

使用插件：

```
WebRTC Control
uBlock Origin（部分模式）
```

***

### ✔ 方法2：指纹浏览器设置

在 AdsPower / Dolphin / MoreLogin 中：

👉 关闭 WebRTC 或限制 IP 泄露

***

### ✔ 方法3：使用“仅代理模式”

确保：

```
所有流量都走代理
```

避免直连网络。

***

### ✔ 方法4：使用 SOCKS5 代理

SOCKS5 在部分场景下：

👉 比 HTTP 更不容易泄露真实 IP

***

## 🔒 七、如何确认已修复？

重新测试：

```
https://browserleaks.com/webrtc
```

确认：

* 只显示代理 IP
* 无本机 IP
* 无多 IP 泄露

***

## 🧭 八、推荐检测流程（非常重要）

建议按顺序检查：

```
1. curl 测试代理是否生效
↓
2. IP 地区检测
↓
3. WebRTC 泄露检测
↓
4. 浏览器环境测试
↓
5. 正式业务使用
```

***

## 🚀 九、快速判断口诀

```
IP变了 ≠ 安全
地区对了 ≠ 安全
WebRTC不泄露 = 真正安全
```

***

## 📚 相关文章 / 相关阅读

* [如何检测代理是否生效](/dai-li-jian-ce-yu-yin-si-an-quan/ru-he-jian-ce-dai-li-shi-fou-sheng-xiao.md)
* [如何检测 IP 地区](/dai-li-jian-ce-yu-yin-si-an-quan/ru-he-jian-ce-ip-di-qu.md)
* [什么是公网 IP](/dai-li-ji-chu-zhi-shi/shen-me-shi-gong-wang-ip.md)
* [什么是浏览器指纹](/dai-li-jian-ce-yu-yin-si-an-quan/liu-lan-qi-zhi-wen-jian-ce.md)
* [什么是 DNS 泄露](/dai-li-jian-ce-yu-yin-si-an-quan/dns-xie-lou-jian-ce.md)
* [如何降低封禁风险](/dai-li-ji-chu-zhi-shi/ru-he-jiang-di-feng-jin-feng-xian.md)
* [指纹浏览器集成指南](/ji-cheng-jiao-cheng/zhi-wen-liu-lan-qi.md)
* [为什么需要海外网络环境](/dai-li-ji-chu-zhi-shi/wei-shen-me-xu-yao-hai-wai-wang-luo-huan-jing.md)
* [IP 不生效](/gu-zhang-pai-chu/ip-bu-sheng-xiao.md)
* [浏览器检测失败](/gu-zhang-pai-chu/liu-lan-qi-jian-ce-shi-bai.md)

***


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.ipwo.net/dai-li-jian-ce-yu-yin-si-an-quan/webrtc-xie-lou-jian-ce.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
