If you bind to port 0 it will auto assign a port for you that you can access at server.address().port