【Tips】XP自带的winsock修复工具

XP自带的winsock修复工具
一些程序经常会劫持IE、修改winsock,我们可以清除他们但是后果是上不去网了。
今天遇到一个兄弟的电脑死活拿不到DHCP IP,检查了DHCP client服务,换过网口,验证过mac地址锁定,换过交换机,关过防火墙和防病毒,强制刷新过域策略,重新装过网络协议,卸载过网卡,结果都没有,后来只有老老实实的去看eventlog,发现有一条A protocol was specified in the socket function call that does not support the semantics of the socket type requested. ,于是认定是winsock坏了。
WSAEPROTOTYPE
10041
Protocol wrong type for socket.

A protocol was specified in the socket function call that does not support the semantics of the socket type requested. For example, the ARPA Internet UDP protocol cannot be specified with a socket type of SOCK_STREAM.

 
 
很多软件都可以修复winsock,但windows xp已经自己带了修复自己的工具,那就是netsh。下次如果在删除病毒程序后上不去网了,直接在运行里键入netsh winsock reset以及netsh firewallreset一切就搞定了。

原文地址:https://www.cnblogs.com/liangqihui/p/1869017.html