Added port selection for the server.