.outport Property


For the currently selected socket (selection is made through sock.num) sets/returns the number of the port that will be used by the socket to establish outgoing connections.



Value Range:

0-65535, default = 0

See Also:



If this property is set to 0 then the socket will use "automatic" port numbers: for the first connection since the powerup the port number will be selected randomly, for all subsequent outgoing connections the port number will increase by one. Actual local port of a connection can be queried through the sock.localport read-only property.

If this property is not at zero then the port it specifies will be used for all outgoing connections from this socket.