Internet Direct (Indy) Version 9.0.1 Beta
TIdSocketHandle.Port
Specifies the port number used by the local connection.

property Port: integer;
Description
Port is an Integer property that identifies the port number on the local system where data is sent and received. IP identifies the host name or dotted-decimal address of the local system.

Note: Many port numbers are associated, by convention, with a particular service such as ftp or http as described in IdPorts. Some protocols use pre-defined port numbers. Port numbers below 1024 are reserved, but using a number above 1024 does not guarantee there will be no conflict.

Port is used in conjunction with IP to determine the local association used to identify the connection endpoint from Bind and Connect.