에러가 발생합니다..
연결하고 바로 연결을 끊는 경우 발생합니다. 아래 python 코드로 테스트 해보시면 됩니다. import socket def check_tcp_connection(ip, port): try: # Create a new socket using the given IP and port with socket.create_connection((ip, port), timeout=5) as s: print(f"Successfully connected to {ip} on port {port}") except socket.error as e: print(f"Failed to connect to {ip} on port {port}. Error: {e}") if __name__ == "__main__": target_ip = "your ip" target_port = int("7777") check_tcp_connection(target_ip, target_port)