'无法建立连接,因为目标计算机主动拒绝了它 [英] 'No connection could be made because the target machine actively refused it

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

问题描述

我正在运行一个客户端应用程序,该客户端应用程序应连接到.NET中的服务器端应用程序.

I am running a client application which should connect to a server side application in .NET.

侦听端口在服务器上可以接收的连接数量是否受到限制?我问是因为我收到异常消息:

Are there any restrictions on the number of connections a listening port can receive on the server? I'm asking because I got an exception Message:

无法建立连接,因为目标计算机主动拒绝了1.9.64.212:62131

No connection could be made because the target machine actively refused it 1.9.64.212:62131

推荐答案

错误无法建立连接,因为目标计算机主动拒绝了连接",这意味着您的请求通过了,因此这不是防火墙问题.此消息表示没有人监听此端口.确保您的服务器应用程序正在运行,并且侦听正确的端口号(和IP地址).在服务器计算机上,您可以运行"netstat -a -b"以查找端口号和侦听这些端口的服务器应用程序.

The error "No connection could be made because the target machine actively refused it" means that your request got through so it is not a firewall issue. This message means that noone listens to this port. Make sure your server application is running and that it listens to the right port number (and IP address). On your server computer you can run "netstat -a -b" to find port numbers and server applications that listen to those ports.

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

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