STUN Protocol
STUN (Session Traversal Utilities for NAT) support in sgcWebSockets. Discover public IP addresses and NAT types for peer-to-peer connectivity.
STUN (Session Traversal Utilities for NAT) support in sgcWebSockets. Discover public IP addresses and NAT types for peer-to-peer connectivity.
uses
sgcSTUN_Client;
var
STUN: TsgcSTUNClient;
begin
STUN := TsgcSTUNClient.Create(nil);
STUN.Host := 'stun.l.google.com';
STUN.Port := 19302;
STUN.OnSTUNBinding := HandleBinding;
STUN.Bind;
end;