NetServer.actualPort

The actual port the server is listening on. This is useful if you bound the server specifying 0 as port number signifying an ephemeral port

@return the actual port the server is listening on.

interface NetServer
int
actualPort
()

Meta