HTTPSecureSocket.Listen

From Xojo Documentation

Method

HTTPSecureSocket.Listen()

Supported for all project types and targets.

Attempts to listen for incoming connections on the currently specified port.

After calling Listen, the Port property will report the actual port you are bound to.