WebRTC (Web Real-Time Communication) is an open web technology that enables browsers and applications to exchange audio, video, and data in real time.
It is commonly used for video calls, voice chat, screen sharing, live collaboration, and peer-to-peer data transfer.
WebRTC is supported by major modern browsers and can work without requiring users to install separate communication plugins.
WebRTC establishes a real-time connection between participating clients.
A typical process includes:
The signaling mechanism itself is not defined by WebRTC and must be provided by the application.
WebRTC and WebSocket both support real-time applications but serve different purposes.
WebSocket is often used for signaling in WebRTC applications.
HTTP normally follows a request-response model between clients and servers.
WebRTC is designed for continuous, low-latency communication and can establish direct connections between peers.
This makes WebRTC better suited to video conferencing and interactive communication, while HTTP remains appropriate for standard web requests and API operations.
WebRTC traffic does not always follow the same path as ordinary HTTP or HTTPS browser traffic.
Depending on browser settings, network configuration, and the proxy type, media connections may use direct UDP or TCP routes instead of a configured web proxy.
This matters when testing applications because the IP address observed through WebRTC may differ from the address used for ordinary web requests.
VPNs, browser policies, and TURN configuration can also influence WebRTC routing.
Consider a browser-based video call:
User A
|
| Signaling
v
Application Server
^
| Signaling
|
User B
User A <---- WebRTC Media ----> User B
The application server helps the users exchange connection information.
Once WebRTC establishes a suitable route, audio and video may flow directly between the two users. If direct communication is unavailable, a TURN server can relay the traffic.
WebRTC is a browser technology for real-time audio, video, and peer-to-peer data communication.
It combines technologies such as ICE, STUN, and TURN to establish connections across different networks. WebRTC is widely used for video calls and live collaboration, but its network behavior can differ from normal HTTP traffic and requires careful connection and privacy management.