P2P & WebRTC Components

Peer-to-peer communication with STUN, TURN, ICE protocols, data channels, and NAT traversal for direct client connections.

Enterprise Edition Only

P2P & WebRTC Components

Build peer-to-peer applications with full NAT traversal and real-time communication support.

UDP Client

UDP Client component for connectionless datagram communication. Ideal for low-latency real-time applications.

UDP Server

UDP Server component for handling multiple datagram endpoints simultaneously.

STUN Client

Session Traversal Utilities for NAT. Discover public IP addresses and port mappings behind NAT devices.

STUN Server

STUN server implementation for NAT traversal assistance in peer-to-peer connections.

TURN Client

Traversal Using Relays around NAT. Relay media when direct peer-to-peer connections fail.

TURN Server

TURN relay server for media relay when direct P2P connections cannot be established.

ICE Client

Interactive Connectivity Establishment. Automatically finds the best path between peers using STUN/TURN.

RTCPeerConnection

WebRTC peer connection implementation for real-time audio, video, and data communication between browsers and applications.

Delphi STUN Client Example

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;

Start Building P2P Applications

Download the free trial and explore peer-to-peer communication components.