WebRTC (Web Real-Time Communication) is an open-source technology that enables real-time audio, video calls, and peer-to-peer data transmission on web browsers and mobile applications through a simple API, without the need for any plugins or third-party software. The WebRTC connection establishment process involves multiple steps, including signaling server connection, offer/answer exchange, ICE candidate exchange, and data channel communication. Core components of WebRTC include signaling server, RTCPeerConnection, Offer/Answer, session description, and channels. ICE (Interactive Connectivity Establishment) plays a vital role in resolving network connectivity issues by handling NAT traversal, optimal path selection, and connection resilience.ICE consists of candidates, STUN servers, and TURN servers, facilitating connection establishment in complex network environments.ICE is crucial for WebRTC to function in diverse network setups. An example implementation of WebRTC-based peer-to-peer chat using a signaling server is also provided.