port

abstract suspend fun port(): Int

Returns the port used by this server.

This function is suspend because finding an available port is an asynchronous operation on some platforms.