Fixed issue when passing a port number into the server