TsgcHTTP3Client › Properties › Port
UDP port of the HTTP/3 (QUIC) server the client is connected to.
property Port: Integer read FPort;
Integer
0 until the first connection. The Connect host overload defaults to 443.
This property is read-only. It is set by Connect and reports the port of the current connection.
HTTP/3 runs over QUIC, which is a UDP transport, so this is a UDP port and not a TCP port. Firewalls that only open TCP 443 will block the connection even though the port number is the same as HTTPS.
To target a non-default port, pass it to the Connect host overload or include it in the request URL, for example https://www.example.com:8443/.
oClient.Connect('www.example.com', 8443);
ShowMessage(IntToStr(oClient.Port)); // 8443