import socket


def tcp_port_check(ip: str, port: int) -> bool:
    """Checks if a TCP port is in use/open."""
    sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    try:
        sock.connect((ip, int(port)))
        sock.shutdown(2)
        return True
    except:
        return False