If you pass `0` for the port, the OS will select an available port and you can inspect it with server.address().port.