.localportlist Property


For the currently selected socket (selection is made through sock.num), sets/returns the list of listening ports on any of which this socket will accept an incoming UDP or TCP connection.



Value Range:

0-32 characters, default = ""

See Also:



The socket will only accept an incoming connection when such connections are allowed by the sock.inconmode property. Whether the socket will accept UDP or TCP connections is defined by the sock.protocol property. Additionally, the sock.allowedinterfaces property defines network interfaces on which the socket will accept an incoming connection.

This property is of string type and the list of ports is a comma-separated string (e.g., "1001,3000" to accept connections on either port 1001 or 3000). The maximum string length for this property is 32 bytes. Note that there is also the sock.httpportlist property that defines a list of listening ports for HTTP TCP connections.

.localportlist Property