ClientPort Property  
 

Return the port number of the current client connection.

Syntax

object.ClientPort

Remarks

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