import socket


def check_port(ip_address, port):
    """
    This function check if the target has http/80 or https/443 up or any port and return the result.
    :param ip_address: the ip of the target
    :param port: to check for port 80 and 443 or any other port
    :return: true if there is a site on that port, false otherwise.
    """
    sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    sock.settimeout(1)
    respond = sock.connect_ex((ip_address, int(port)))
    if respond == 0:
        return True
    else:
        return False