LocalPort Property  
 

Gets and sets the port number for a local listening socket.

Syntax

object.LocalPort [= port ]

Remarks

The LocalPort property is used to set the port number that a server will listen on for connections.

Data Type

Integer (Int32)

See Also

PeerPort Property, RemotePort Property, ReservedPort Property, Bind Method, Listen Method