TCP/IP错误10061 [英] TCP/Ip error 10061

查看:478
本文介绍了TCP/IP错误10061的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

需要知道是什么触发了此错误.我正在将Windows应用程序和Web服务用于套接字程序.已经禁用防火墙.并获得了另一个连接到相同IP和端口的应用程序,但该应用程序仍按预期运行.

这是我的代码:

Hi everyone,

need to know what trigger this error.Im using windows application and web services for the socket program. Already disable the firewall. and got another application that connect to the same ip and port but the app still run as expected.

here my code :

using (CS.CommunicationServiceClient client = new CommunicationTest.CS.CommunicationServiceClient())
            {
                client.Open();
                string data = data_connect;
                data = data.ToUpper();
                string IP = txtIP.Text;
                int PORT = Int32.Parse(txtPort.Text);

                client.Send(IP, PORT, data);
                System.Threading.Thread.Sleep(1000);
                client.Close();
            }

推荐答案

Error 10061表示目标服务器由于安全设置而拒绝连接尝试.

我找到了此链接 [
The Error 10061 means Target server rejects connection attempt due to security settings.

I found This link[^] that might help you. Also, Google is your best friend.

Best of luck.


这篇关于TCP/IP错误10061的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆