C# TCP 错误代码 10061:无法建立连接,因为目标机器主动拒绝它

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/15804647/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-10 18:00:00  来源:igfitidea点击:

TCP error code 10061: No connection could be made because the target machine actively refused it

c#wcf

提问by Ranjita Das

Error

错误

Could not connect to net.tcp://localhost:5051/user. The connection attempt lasted for a time span of 00:00:02.0600206. TCP error code 10061: No connection could be made because the target machine actively refused it 127.0.0.1:5051.

无法连接到 net.tcp://localhost:5051/user。连接尝试持续了 00:00:02.0600206 的时间跨度。TCP 错误代码 10061:无法建立连接,因为目标机器主动拒绝它 127.0.0.1:5051。

Firewall is block? Have any Idea?

防火墙是块?有什么想法吗?

回答by Csaba Toth

Just for the records: correct link for the possible solution linked by @RanjitaDas is link

仅供记录:@RanjitaDas链接的可能解决方案的正确链接是 链接