@staticmethod
def _is_port_number(port):
    """
        Indicates if the input is a valid port number.
        :param port: Port number to check.
        :return: True if the input is a valid port number, false otherwise.
        """
    res = True
    try:
        port_int = int(port)
        if port_int < 1 or port_int > 65535:
            res = False
    except (TypeError, ValueError):
        res = False
    return res
