RemotePort
This property returns or sets the remote port number.
Syntax: nValue = oSocket.RemotePort
Alternate: oSocket.RemotePort = Value
nValue (Long) the port number used to access the host system the client will be connecting to.
Group :Socket Object
Example:
Dim WithEvents oSocket As Socket ' module level Dim
Dim nPort As Long
Set oSocket = New Socket
oSocket.RemotePort = 11908
nPort = oSocket.RemotePort