.localport R/O Property

Function:

For the currently selected socket (selection is made through sock.num), returns current local port of the socket.

Type:

Word

Value Range:

0-65535, default = 0

See Also:

---


Details

Your application cannot set the local port directly. Instead, a list of ports on which the socket is allowed to accept an incoming connection (passive open) is supplied via the sock.localportlist and sock.httpportlist properties.

An incoming connection is accepted on any port from those two lists. The sock.localport property reflects the current or the most recent local port on which a connection was accepted.


.localport R/O Property

Details