ServerSocket.Port

From Xojo Documentation

Property (As Integer )
aServerSocket.Port = newIntegerValue
or
IntegerValue = aServerSocket.Port

Supported for all project types and targets.

The port to bind to for listening.

Example

This example gets the Port that is being used by the ServerSocket.

TextField1.Value = mServerSocket.Port.ToString