由于目标机器主动拒绝它,因此无法建立连接 [英] No Connection could be made bacause the target machine actively refused it

查看:186
本文介绍了由于目标机器主动拒绝它,因此无法建立连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我开发了一个用于使用TCP / IP通信进行文件传输的应用程序。我面临的问题是'有时'它正在抛出异常因为没有连接可以使目标机器主动拒绝它在下面的行

  //  如果是,则将令牌发送给发件人以发送文件。 
receiverSock.Connect(strSenderIP,intPort); // put sender IP



请帮助我解决上述问题。

解决方案

查看此帖子

无法建立连接,因为目标机器主动拒绝它 [ ^ ]

Hi all,
I have developed a application that is used for file transfer using TCP/IP Communication.Problem i am facing is 'sometimes' it is throwing exception as "No Connection could be made bacause the target machine actively refused it" at the below line

//if yes then send a token to the sender to send a file.
                 receiverSock.Connect(strSenderIP, intPort);//put sender IP


Kindly help me in resolving the mentioned issue.

解决方案

Check this thread
No connection could be made because the target machine actively refused it[^]


这篇关于由于目标机器主动拒绝它,因此无法建立连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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