Internet Direct (Indy) Version 9.0.1 Beta
TIdURI.Port
Represents the port portion of a URI.

property Port: string;
Description
Port is a String property that represents the port specified in a URI. For example, a URI with the value "http://www.nevrona.com:80/indy/index.html" would result in Port property containing the value "80".

Often the Port property is not used because most URI's use a default port which is indicated by the protocol, as in "http://www.nevrona.com/indy/index.html". The HTTP protocol uses port 80 by default.

However, this value should be checked since port can be overridden by a port specified in the URI.