Currently, it's mandatory to pass a valid free port.
It would be nice to have an option to omit the port, start with an ephemeral port provided by the OS.
Implementation-wise, it looks as simple as passing 0 to serverSocketFactory.createServerSocket(port) and exposing listenSocket.getLocalPort()