import socket


def is_hoplite_available(address, port=5000):
    """
    Find if the hoplite process is accessible on the remote target

    :return: True if hoplite is available and listening on the target
    :rtype: Boolean
    """
    if ':' in address:
        temp_address = address.split(':')[0]
        port = address.split(':')[1]
        address = temp_address

    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    try:
        s.connect((address, port))
        s.close()
    except socket.error:
        return False
    return True