i think if port was set, and the port is not a number between 1 and 65535 we should throw and exception.