'无法建立连接,因为目标计算机主动拒绝了它

编程入门 行业动态 更新时间:2024-10-28 15:32:57
本文介绍了'无法建立连接,因为目标计算机主动拒绝了它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在运行一个客户端应用程序,该客户端应用程序应连接到.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.

更多推荐

'无法建立连接,因为目标计算机主动拒绝了它

本文发布于:2023-10-23 20:06:56,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1521879.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:主动   目标   计算机   拒绝了

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!