Internet Direct (Indy) Version 9.0.1 Beta
TIdSocketHandle.PeerPort
Specifies the port number used by a peer connection.

property PeerPort: integer;
Description
PeerPort is a read-only Integer property that identifies the port number on the remote system where data is sent and received. PeerIP identifies the host name or dotted-decimal address of the remote 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.

PeerPort is updated using SetPeer, or when Accept is used to bind a connection to a remote system.