TsgcHTTP3Client › Properties › Port

Port Property

UDP port of the HTTP/3 (QUIC) server the client is connected to.

Syntax

property Port: Integer read FPort;

Type

Integer

Default

0 until the first connection. The Connect host overload defaults to 443.

Remarks

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/.

Example



oClient.Connect('www.example.com', 8443);

ShowMessage(IntToStr(oClient.Port)); // 8443

Back to Properties