findPort

fun findPort(): Int

Finds an available port for the server socket.

Return

The available port number as an integer.