def check_port(port):
    """ Check that the host port is valid

    Keyword arguments:
    port -- an integer
    """
    if not isinstance(port, int):
        return False
    if port not in range(1024, 65535):
        return False
    return True