TCPSocket.Listen
From Xojo Documentation
Method
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.
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.