TCPSocket.Listen

From Xojo Documentation

Method

TCPSocket.Listen()

Supported for all project types and targets.

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

Notes

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