ServerSocket.IsListening

From Xojo Documentation

Read-Only Property (As Boolean )
BooleanValue = aServerSocket.IsListening

Supported for all project types and targets.

True when the ServerSocket is listening for incoming connections.

Example

This example checks to see that the ServerSocket is listening.

If mServerSocket.IsListening Then
MessageBox(mServerSocket.NetworkInterface.IPAddress)
Else
MessageBox("Not listening")
End If