TURN Protocol

TURN (Traversal Using Relays around NAT) support in sgcWebSockets. Relay traffic when direct P2P connections are not possible.

Capabilities

  • Relay media and data when direct P2P fails
  • RFC 5766 compliant implementation
  • Allocation and permission management
  • Channel binding for efficient relaying
  • Works with STUN and ICE for complete NAT traversal

Delphi Example

uses
  sgcTURN_Client;

var
  TURN: TsgcTURNClient;
begin
  TURN := TsgcTURNClient.Create(nil);
  TURN.Host := 'turn.example.com';
  TURN.Port := 3478;
  TURN.Credentials.Username := 'user';
  TURN.Credentials.Password := 'pass';
  TURN.Allocate;
end;

Ready to Use TURN?

Download the free trial and start building in minutes.