P2P & WebRTC Components
Peer-to-peer communication with STUN, TURN, ICE protocols, data channels, and NAT traversal for direct client connections.
Peer-to-peer communication with STUN, TURN, ICE protocols, data channels, and NAT traversal for direct client connections.
Build peer-to-peer applications with full NAT traversal and real-time communication support.
UDP Client component for connectionless datagram communication. Ideal for low-latency real-time applications.
UDP Server component for handling multiple datagram endpoints simultaneously.
Session Traversal Utilities for NAT. Discover public IP addresses and port mappings behind NAT devices.
STUN server implementation for NAT traversal assistance in peer-to-peer connections.
Traversal Using Relays around NAT. Relay media when direct peer-to-peer connections fail.
TURN relay server for media relay when direct P2P connections cannot be established.
Interactive Connectivity Establishment. Automatically finds the best path between peers using STUN/TURN.
WebRTC peer connection implementation for real-time audio, video, and data communication between browsers and applications.
Discover your public IP address and port mapping behind NAT.
procedure TForm1.DiscoverPublicIP;
begin
sgcSTUNClient1.Host := 'stun.l.google.com';
sgcSTUNClient1.Port := 19302;
sgcSTUNClient1.Discover;
end;
procedure TForm1.sgcSTUNClient1Response(Sender: TObject;
const Response: TsgcSTUNResponse);
begin
Memo1.Lines.Add('Public IP: ' + Response.MappedAddress);
Memo1.Lines.Add('Public Port: ' + IntToStr(Response.MappedPort));
end;