> For the complete documentation index, see [llms.txt](https://help.gpmloginapp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.gpmloginapp.com/huong-dan-bat-dau/kien-thuc-ve-fingerprint/webrtc-ip.md).

# WebRTC IP

WebRTC là một công nghệ cho phép hai thiết bị kết nối trực tiếp với nhau mà không cần thông qua các kết nối trung gian. Công nghệ này thường được sử dụng trong các ứng dụng yêu cầu tốc độ kết nối nhanh, chẳng hạn như gọi video.

Trước khi có WebRTC, nếu hai người dùng Facebook muốn gọi video cho nhau, dữ liệu phải được gửi và truyền qua máy chủ của Facebook (thường đặt tại Mỹ, nên luồng kết nối sẽ là từ Việt Nam → Mỹ → Việt Nam, rất tốn thời gian). Điều này không chỉ tạo ra tải lớn cho máy chủ của Facebook mà còn mang lại trải nghiệm kém cho người dùng do thời gian kết nối chậm, dễ gây giật, lag.

Với WebRTC, hai thiết bị có thể thiết lập kết nối trực tiếp với nhau (thường sử dụng giao thức UDP). Điều này giúp cải thiện tốc độ kết nối và giảm đáng kể tải cho máy chủ trung gian.

Tuy nhiên, do WebRTC cho phép kết nối trực tiếp, bỏ qua các kết nối trung gian, nên nó cũng được sử dụng trong lĩnh vực bảo mật để xác định địa chỉ IP thật của người dùng.

Website sẽ yêu cầu máy tính thiết lập kết nối thông qua WebRTC. Khi kết nối được thiết lập, máy tính và website sẽ có một kết nối trực tiếp, hoàn toàn bỏ qua proxy trung gian nếu có. Điều này cho phép website lấy được địa chỉ IP thật của thiết bị thông qua hai phương thức:

– Đọc các gói tin UDP (phương pháp phổ biến)\
– Gửi yêu cầu tới máy chủ STUN để lấy và trả về kết quả (eBay sử dụng phương pháp này)

Các giải pháp antidetect sẽ can thiệp bằng cách ghi đè địa chỉ IP thật trong các gói UDP, đồng thời xử lý các yêu cầu liên quan đến máy chủ STUN.


---

# 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://help.gpmloginapp.com/huong-dan-bat-dau/kien-thuc-ve-fingerprint/webrtc-ip.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.
