ClientPort Property  

Return the port number allocated by the active client connection.




The ClientPort property returns the port number that the current client has used when establishing a connection with the server. This property value is only meaningful when accessed within an event handler such as the OnConnect event.

Data Type

Integer (Int32)

See Also

ClientAddress Property, ClientHost Property, ServerAddress Property, ServerPort Property