Add check_tcp_connect to client