LocalPort Property  
 

Return the local port number for the current connection.

Syntax

object.LocalPort

Remarks

The LocalPort property is used to return the port number assigned to the client when a connection was established to the server. The local port number is automatically allocated by the operating system, and typically is in a range between 1024 and 5000.

Data Type

Integer (Int32)

See Also