TsgcSTUNClient属性 › Port

Port 属性

STUN 服务器的监听端口;根据 RFC 5389 定义,默认为 3478。

语法

property Port: Integer read GetPort write SetPort;

默认值

备注

将 Port 设置为 STUN 服务器监听的 UDP 或 TCP 端口。RFC 5389 为 UDP/TCP 保留了 3478 端口,为 TLS 保留了 5349 端口。当连接的服务器使用非默认端口时,请修改此值。

示例

oSTUN.Host := 'stun.sgcwebsockets.com';
oSTUN.Port := 3478;
oSTUN.SendRequest;

返回属性