The STUN server can be configured with or without Authentication, can verify Fingerprint Attribute, send an alternate server and more.
TsgcSTUNServer is the server that implements the STUN protocol and allows you to process binding requests from STUN clients.
The STUN server can be configured with or without Authentication, can verify Fingerprint Attribute, send an alternate server and more.
Usually STUN servers run on UDP port 3478 and don't require authentication, so in order to configure a STUN server, set the listening port (by default 3478) and start the server.
Configure the server
Set the property Active = True to start the STUN server.
oSTUN := TsgcSTUNServer.Create(nil);
oSTUN.Port := 3478;
oSTUN.Active := True;
Configurations