No connection could be made because the target machine actively refused it [::1]:808

No connection could be made because the target machine actively refused it [::1]:808

 

确保安装了wcf

 

 

 

 

1.首先查看端口占用情况,

在资源监视器中查看808端口,没有发现端口被监听

 

2.和同事确认,他那边的808端口,是一个名为SMSvcHost的进程在监听

查看了一下,进程的file location

C:\Windows\Microsoft.NET\Framework64\v4.0.30319

 

3.谷歌搜索SMSvcHost.exe start automatically

发现这个exe和一个Service关联的

 

4.让同事使用process explorer查看exe的属性,发现这个exe关联到三个service

 

5.查看自己机器上的service,发现Net Tcp Listener是关闭状态,重启服务

重启之后,依然有问题,exe不知道去监听iis中配置好的wcf端口

 

和微软的agent聊天,智能聊天机器人发的链接可以用

https://answers.microsoft.com/en-us/windows/forum/windows_vista-networking/network-error-tcperror/e46185e4-cd61-493e-b6c3-680672864365?auth=1 

I would suggest you to repair the TCP/IP stack in your system and check whether the issue is resolved. Follow the steps mentioned below.

a.       Click on Start, Programs and then Accessories and right click on Command Prompt, select "Run as Administrator" to open a command prompt.

b.      In the command prompt, type in the bolded text, one command after the other, pressing Enter between each of them:

§ Reset WINSOCK entries to installation defaults:netsh winsock reset catalog

§ Reset IPv4 TCP/IP stack to installation defaults:netsh int ipv4 reset reset.log

§ Reset IPv6 TCP/IP stack to installation defaults:netsh int ipv6 reset reset.log

c.       Reboot the machine.

 

就我的个人测试而言,只需要执行第一句

然后重启net tcp listener adapter服务

 

https://www.cnblogs.com/webu/archive/2013/06/07/3123170.html

简单来说netsh winsock reset命令含义是重置 Winsock 目录。如果一台机器上的Winsock协议配置有问题的话将会导致网络连接等问题,就需要用netsh winsock reset命令来重置Winsock目录借以恢复网络。

winsock是windows网络编程接口,从Windows XP SP2开始内置了一条命令使用netsh能够对该接口进行修复。

netsh是一个能够通过命令行操作几乎所有网络相关设置的接口。比如设置IP,DNS,网卡,无线网络等。
netsh winsock reset:
先进入netsh
然后进入winsock这个部件
对winsock这个部件执行reset命令。
效果就是重置Winsock。对于一些WinSock被破坏导致的问题有奇效。在netsh出现之前,对于WinSock问题的修复是非常繁琐的

 

命令也可以一层一层递进

 

作者:Chuck Lu    GitHub    
posted @   ChuckLu  阅读(29744)  评论(0编辑  收藏  举报
编辑推荐:
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
点击右上角即可分享
微信分享提示