ensure 0 < port < 65535