STUN Client
TsgcSTUNClient component for discovering public IP addresses and NAT traversal in peer-to-peer Delphi applications.
TsgcSTUNClient component for discovering public IP addresses and NAT traversal in peer-to-peer Delphi applications.
uses
sgcSTUN_Client;
var
Client: TsgcSTUNClient;
begin
Client := TsgcSTUNClient.Create(nil);
Client.Host := 'stun.l.google.com';
Client.Port := 19302;
Client.OnSTUNBinding := HandleBinding;
Client.Bind;
// Public IP and port returned in event
end;
Deep-link to the component reference, grab the ready-to-run demo project, and download the trial.