TsgcSTUNServer › Properties › Active
Starts or stops the STUN server; set to True to begin listening for Binding Requests.
property Active: Boolean read GetActive write SetActive;
—
Set Active to True to open the UDP socket on Host/Port and start processing incoming STUN Binding Requests. Set it to False to stop the server, close every binding and release the listener threads. Configure Port, STUNOptions and any AddBinding entries before activation; changes that affect the socket layout require the server to be restarted to take effect.
oSTUN := TsgcSTUNServer.Create(nil);
oSTUN.Port := 3478;
oSTUN.Active := True;