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

No connection could be made because the target machine actively refused it [::1]:808_第1张图片

 

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

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

 

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

查看了一下,进程的file location

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

 

3.谷歌搜索SMSvcHost.exe start automatically

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

No connection could be made because the target machine actively refused it [::1]:808_第2张图片

 

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

No connection could be made because the target machine actively refused it [::1]:808_第3张图片

 

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服务

No connection could be made because the target machine actively refused it [::1]:808_第4张图片

 

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问题的修复是非常繁琐的

 

命令也可以一层一层递进

No connection could be made because the target machine actively refused it [::1]:808_第5张图片

 

转载于:https://www.cnblogs.com/chucklu/p/7879491.html

你可能感兴趣的:(No connection could be made because the target machine actively refused it [::1]:808)