Resetting Winsock Protocol

marsmimar

New member
Guru
Gold Member
VIP
Local time
11:28 PM
Messages
6,973
Location
South Central Texas
Ever since I got my 7 Pro x86 laptop in Dec 09 I've experienced periodic loss of Internet connectivity, usually a couple of times a month. My computer is connected to an external modem provided by AT&T, no router, no home network. The modem has been tested by two different AT&T repair centers and no problems were noted. Even so I bought another modem and connectivity is still regularly lost. My laptop is wired like this AT&T diagram:

View attachment 113514

Based on my own research I've found that one possible cause of network connectivity problems is the mis-configuration or the corruption of the Winsock protocol (network drivers) on the 7 computer. (Prior to getting the 7 laptop I was using an XP Pro machine. I never had any connectivity issues with it.) Per Microsoft, this protocol is used by Windows to communicate with other computers and to access resources on the Internet, such as e-mail and Web sites. If there is a problem with Winsock, Windows will no longer be able to access the Internet. The recommended Microsoft fix is:

1. Run elevated command prompt.
2. Type netsh winsock reset > ENTER:
3. The following message should be seen: "Successfully reset the Winsock Catalog. You must restart the computer in order to complete the reset."
4. Restart computer.

Another elevated command prompt that has been suggested is:
netsh int ip reset reset.log hit
So far I have not tred this because netsh winsock reset has been able to restore my Internet connectivity.

FWIW, all drivers are the lastest versions, no malware on computer (connectivity issue has occured in the past even after a clean install of OS), device manager shows no problems including ethernet drivers and network adapters, all cables have been swapped out including the filter, and the only event log entry of any substance was a warning: "Name resolution for the name dns.msftncsi.com timed out after none of the configured DNS servers responded" after latest loss of connectivity a couple of hours ago.

My questions are:
1. What exactly is happening when I enter the netsh winsock reset command?
2. Why would my Internet connectivity / network drivers fail so often? Does it sound more like an ISP issue or a computer issue?
3. Any recommended diagnostic checks to better pinpoint what is happening and why?

If this is posted in the wrong section I apologize.
 
Last edited:

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Sony Vaio VPCEB47GM Laptop
OS
Win 7 Pro 64-bit
CPU
Intel i5 2.4 Ghz
Memory
8GB DDR3
Graphics Card(s)
Intel HD 3000
Sound Card
IDT High Definition
Monitor(s) Displays
15.6 WGXA Anti-Glare LED
Screen Resolution
1280x800
Hard Drives
640Gb 7200rpm
Antivirus
MSE
Browser
Opera (primary) with IE9 backup
Try registering your DNS by opening an elevated command prompt and typing:

ipconfig /flushdns .... press enter
ipconfig /registerdns .... press enter

Also, can you update the firmware on AT&T's Modem?
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Bruce ... somewhere in his 40's
OS
Windows 7 Ultimate 32bit SP1
CPU
Intel(R) Core(TM)2 Quad CPU @ 2.40GHz, 2400 MHz
Motherboard
INTEL/D975XBX2
Memory
4 GB
Graphics Card(s)
ATI Radeon HD 2600 Pro
Monitor(s) Displays
Samsung SyncMaster 914v
Screen Resolution
1280 x 1024
Hard Drives
2/500GB each ... ST3500630AS ATA Device.
One is not connected
PSU
Rocketfish 700 W
Case
G.Skill Gigabyte Chassis
Keyboard
Standard PS/2 Keyboard
Mouse
Microsoft PS/2 Mouse
Internet Speed
DSL
Antivirus
Avira Internet Security
Browser
IE 11
Other Info
ATI HDMI Audio
Try registering your DNS by opening an elevated command prompt and typing:

ipconfig /flushdns .... press enter
ipconfig /registerdns .... press enter

Also, can you update the firmware on AT&T's Modem?

On previous occasions when I've lost connectivity I tried flushing/registering DNS. It didn't help to restore connectivity and there were no errors in the event viewer after the requisite 15 minute waiting period. According to AT&T repair center the latest firmware is installed on both modems (original and spare) as of Sep 2010 when I took the original modem in and purchased the spare.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Sony Vaio VPCEB47GM Laptop
OS
Win 7 Pro 64-bit
CPU
Intel i5 2.4 Ghz
Memory
8GB DDR3
Graphics Card(s)
Intel HD 3000
Sound Card
IDT High Definition
Monitor(s) Displays
15.6 WGXA Anti-Glare LED
Screen Resolution
1280x800
Hard Drives
640Gb 7200rpm
Antivirus
MSE
Browser
Opera (primary) with IE9 backup
What Anti-virus software and Firewall are you running? You may have a conflict there.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Bruce ... somewhere in his 40's
OS
Windows 7 Ultimate 32bit SP1
CPU
Intel(R) Core(TM)2 Quad CPU @ 2.40GHz, 2400 MHz
Motherboard
INTEL/D975XBX2
Memory
4 GB
Graphics Card(s)
ATI Radeon HD 2600 Pro
Monitor(s) Displays
Samsung SyncMaster 914v
Screen Resolution
1280 x 1024
Hard Drives
2/500GB each ... ST3500630AS ATA Device.
One is not connected
PSU
Rocketfish 700 W
Case
G.Skill Gigabyte Chassis
Keyboard
Standard PS/2 Keyboard
Mouse
Microsoft PS/2 Mouse
Internet Speed
DSL
Antivirus
Avira Internet Security
Browser
IE 11
Other Info
ATI HDMI Audio
What Anti-virus software and Firewall are you running? You may have a conflict there.

MSE and Windows firewall.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Sony Vaio VPCEB47GM Laptop
OS
Win 7 Pro 64-bit
CPU
Intel i5 2.4 Ghz
Memory
8GB DDR3
Graphics Card(s)
Intel HD 3000
Sound Card
IDT High Definition
Monitor(s) Displays
15.6 WGXA Anti-Glare LED
Screen Resolution
1280x800
Hard Drives
640Gb 7200rpm
Antivirus
MSE
Browser
Opera (primary) with IE9 backup
1) Windows sockets configuration (Winsock) can get corrupted for various reasons such as installation of networking software, or malware infection, or even by security apps. When Winsock corrupts, you'll run into networking errors like "Page cannot be displayed” error messages.

What netsh winsock reset command does is to reset the Winsock Catalog to a clean state or default configuration. It removes all Winsock LSP (Layered Service Providers) previously installed, including the potential malfunctioning LSP that causes loss of network packets transmission failure. So all previously-installed LSPs must be reinstalled. This command does not affect Winsock Name Space Provider entries.

To check which LSPs are installed, use netsh winsock show catalog command.

2) For your connectivity problems, I think you need to explore alternate drivers. Also, if you have a spare NIC, test with that.
 

My Computer

Computer Manufacturer/Model Number
Too many to describe...
OS
Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86
The TCP/ip stack can also be corrupted and fixed with the command below.

It's a 4 layer stack and can get messed up sometimes although if you are losing internet randomly and you can't make changes to your modem-router then about the only other thing you can do is try another network driver for your machine.

netsh int ip reset reset.log hit (reset TCP/IP stack)

http://support.dell.com/support/dow...abIndex=&scanSupported=True&scanConsent=False
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home built
OS
Windows 7 Ult, Windows 8.1 Pro,
CPU
Q9650-4.275GHz, E8600 4.5GHz, E6750-3.8GHz
Motherboard
Evga 780i FTW
Memory
G.Skill PC2 9600 1200Mhz 5 5 5 15 2T
Graphics Card(s)
GTX480
Sound Card
Asus Xonar D2
Monitor(s) Displays
HannsG
Screen Resolution
1680X1050
Hard Drives
GSkill Phoenix Pro 120GB SSD
PSU
ThermalTake Toughpower 1000Watt modular
Case
ThermalTake XaserV
Cooling
Xigmatek S1283
Keyboard
Logitech G15
Mouse
Logitech G9
Internet Speed
T1
If the above still doesn't work, you may have a program that's trying to connect to the Internet and causing the 'time out'. Bonjour?
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Bruce ... somewhere in his 40's
OS
Windows 7 Ultimate 32bit SP1
CPU
Intel(R) Core(TM)2 Quad CPU @ 2.40GHz, 2400 MHz
Motherboard
INTEL/D975XBX2
Memory
4 GB
Graphics Card(s)
ATI Radeon HD 2600 Pro
Monitor(s) Displays
Samsung SyncMaster 914v
Screen Resolution
1280 x 1024
Hard Drives
2/500GB each ... ST3500630AS ATA Device.
One is not connected
PSU
Rocketfish 700 W
Case
G.Skill Gigabyte Chassis
Keyboard
Standard PS/2 Keyboard
Mouse
Microsoft PS/2 Mouse
Internet Speed
DSL
Antivirus
Avira Internet Security
Browser
IE 11
Other Info
ATI HDMI Audio
1) Windows sockets configuration (Winsock) can get corrupted for various reasons such as installation of networking software, or malware infection, or even by security apps. When Winsock corrupts, you'll run into networking errors like "Page cannot be displayed” error messages.

What netsh winsock reset command does is to reset the Winsock Catalog to a clean state or default configuration. It removes all Winsock LSP (Layered Service Providers) previously installed, including the potential malfunctioning LSP that causes loss of network packets transmission failure. So all previously-installed LSPs must be reinstalled. This command does not affect Winsock Name Space Provider entries.

To check which LSPs are installed, use netsh winsock show catalog command.

2) For your connectivity problems, I think you need to explore alternate drivers. Also, if you have a spare NIC, test with that.

The TCP/ip stack can also be corrupted and fixed with the command below.

It's a 4 layer stack and can get messed up sometimes although if you are losing internet randomly and you can't make changes to your modem-router then about the only other thing you can do is try another network driver for your machine.

netsh int ip reset reset.log hit (reset TCP/IP stack)
Read more: http://windows7themes.net/repair-reset-winsock-windows-7.html#ixzz15B58tLUR

If the above still doesn't work, you may have a program that's trying to connect to the Internet and causing the 'time out'. Bonjour?

@Bill - Thanks for the info, Bill. I think understand Windsock a lot better now. :confused: Unfortunately I don't have a spare NIC. I ran the "show catalog" command and there were 17 LSPs listed and called things like: Base Service Provider, Network Location Awareness Legacy, Tcpip, NTDS, E-mail Naming Shim Provider, PNRP Cloud Namespace Provider, PNRP Name Namespace Provider, mdnsNSP, WindowsLive NSP, and WindowsLive Local NSP. Do you see any red flags here?

@Rob - Appreciate the links. I double-checked Dell support for any updated drivers and I have the latest installed.

@jacee - Your comment about a program trying to connect to the Internet got me thinking. I don't have Bonjour (no iTunes or any other Apple apps that might need it) but doesn't MSE call home via Microsoft SpyNet? I'm running MSE 2.0 beta. Have you heard of any issues involving SpyNet?

@All - I apologize for not responding sooner. Had to take care of some personal things. Appreciate your comments and suggestions. This problem occurs so infrequently it's really hard to troubleshoot. I don't get any advance warnings that something is wrong until I try to go to a website and I realize I lost Internet connectivity. Should I just get into the habit of clearing the Winsock Catalog and TCP/IP Stack whenever I shut down my laptop?
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Sony Vaio VPCEB47GM Laptop
OS
Win 7 Pro 64-bit
CPU
Intel i5 2.4 Ghz
Memory
8GB DDR3
Graphics Card(s)
Intel HD 3000
Sound Card
IDT High Definition
Monitor(s) Displays
15.6 WGXA Anti-Glare LED
Screen Resolution
1280x800
Hard Drives
640Gb 7200rpm
Antivirus
MSE
Browser
Opera (primary) with IE9 backup
@All - I apologize for not responding sooner. Had to take care of some personal things. Appreciate your comments and suggestions. This problem occurs so infrequently it's really hard to troubleshoot. I don't get any advance warnings that something is wrong until I try to go to a website and I realize I lost Internet connectivity. Should I just get into the habit of clearing the Winsock Catalog and TCP/IP Stack whenever I shut down my laptop?

You should not need to clear winsock or reset the TCP/ip stack at every shut down, clearly there is an underlying problem. There are no magic buttons in Windows 7 that fix networking problems.

If you really want help with this problem then post a screen shot of your ipconfig /all here the next time you lose the connection and I will see if I can find a problem. This procedure has worked for me over 600 times to solve problems and I can assure you that your network problem is no different than anyone else's. ;)
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home built
OS
Windows 7 Ult, Windows 8.1 Pro,
CPU
Q9650-4.275GHz, E8600 4.5GHz, E6750-3.8GHz
Motherboard
Evga 780i FTW
Memory
G.Skill PC2 9600 1200Mhz 5 5 5 15 2T
Graphics Card(s)
GTX480
Sound Card
Asus Xonar D2
Monitor(s) Displays
HannsG
Screen Resolution
1680X1050
Hard Drives
GSkill Phoenix Pro 120GB SSD
PSU
ThermalTake Toughpower 1000Watt modular
Case
ThermalTake XaserV
Cooling
Xigmatek S1283
Keyboard
Logitech G15
Mouse
Logitech G9
Internet Speed
T1
If you really want help with this problem then post a screen shot of your ipconfig /all here the next time you lose the connection and I will see if I can find a problem. This procedure has worked for me over 600 times to solve problems and I can assure you that your network problem is no different than anyone else's. ;)

Thank you Rob. I appreciate the offer. If things follow the usual pattern of behavior I probably won't lose my connection again until the end of the month or so.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Sony Vaio VPCEB47GM Laptop
OS
Win 7 Pro 64-bit
CPU
Intel i5 2.4 Ghz
Memory
8GB DDR3
Graphics Card(s)
Intel HD 3000
Sound Card
IDT High Definition
Monitor(s) Displays
15.6 WGXA Anti-Glare LED
Screen Resolution
1280x800
Hard Drives
640Gb 7200rpm
Antivirus
MSE
Browser
Opera (primary) with IE9 backup
If you are only losing the connection once a month I would probably have to blame the ISP or their hardware.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home built
OS
Windows 7 Ult, Windows 8.1 Pro,
CPU
Q9650-4.275GHz, E8600 4.5GHz, E6750-3.8GHz
Motherboard
Evga 780i FTW
Memory
G.Skill PC2 9600 1200Mhz 5 5 5 15 2T
Graphics Card(s)
GTX480
Sound Card
Asus Xonar D2
Monitor(s) Displays
HannsG
Screen Resolution
1680X1050
Hard Drives
GSkill Phoenix Pro 120GB SSD
PSU
ThermalTake Toughpower 1000Watt modular
Case
ThermalTake XaserV
Cooling
Xigmatek S1283
Keyboard
Logitech G15
Mouse
Logitech G9
Internet Speed
T1
Do you have an automatic backup scheuled at the end of the month, or around that time?
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Bruce ... somewhere in his 40's
OS
Windows 7 Ultimate 32bit SP1
CPU
Intel(R) Core(TM)2 Quad CPU @ 2.40GHz, 2400 MHz
Motherboard
INTEL/D975XBX2
Memory
4 GB
Graphics Card(s)
ATI Radeon HD 2600 Pro
Monitor(s) Displays
Samsung SyncMaster 914v
Screen Resolution
1280 x 1024
Hard Drives
2/500GB each ... ST3500630AS ATA Device.
One is not connected
PSU
Rocketfish 700 W
Case
G.Skill Gigabyte Chassis
Keyboard
Standard PS/2 Keyboard
Mouse
Microsoft PS/2 Mouse
Internet Speed
DSL
Antivirus
Avira Internet Security
Browser
IE 11
Other Info
ATI HDMI Audio
Do you have an automatic backup scheuled at the end of the month, or around that time?

No. I've always done manual backups, manual Windows Updates, etc out of fear that something might try to reboot my computer in the middle of it all.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Sony Vaio VPCEB47GM Laptop
OS
Win 7 Pro 64-bit
CPU
Intel i5 2.4 Ghz
Memory
8GB DDR3
Graphics Card(s)
Intel HD 3000
Sound Card
IDT High Definition
Monitor(s) Displays
15.6 WGXA Anti-Glare LED
Screen Resolution
1280x800
Hard Drives
640Gb 7200rpm
Antivirus
MSE
Browser
Opera (primary) with IE9 backup
I know it's an old post, but how about checking the MTU of the modem? Default MTU for Windows is 1500, try 1400 or 1300 on your pc to see if it helps.

Most ISPs now have their devices set to 1500, but some may still be in an old place about this.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
custom
OS
Window 7 32/64
CPU
i3
Motherboard
Asus
Memory
16GB
Hard Drives
several
Antivirus
symantec endpoint
Browser
firefox/chrome
1) Windows sockets configuration (Winsock) can get corrupted for various reasons such as installation of networking software, or malware infection, or even by security apps. When Winsock corrupts, you'll run into networking errors like "Page cannot be displayed” error messages.

What netsh winsock reset command does is to reset the Winsock Catalog to a clean state or default configuration. It removes all Winsock LSP (Layered Service Providers) previously installed, including the potential malfunctioning LSP that causes loss of network packets transmission failure. So all previously-installed LSPs must be reinstalled. This command does not affect Winsock Name Space Provider entries.

To check which LSPs are installed, use netsh winsock show catalog command.

2) For your connectivity problems, I think you need to explore alternate drivers. Also, if you have a spare NIC, test with that.
I had the same issue this weekend, on multiple Windows 2008 R2 servers - some just recently configured and other that have been in service for more than a year, but rebooted this past weekend for patches, some at remote sites, some in our primary datacenter. -All Windows 2008 R2, all use Sophos, firewall settings default from Microsoft. The fact that someone says that they have fixed the issue over 600 times tells me this is not related to a single misconfiguration error. This sounds like it's something with Winsock inside of Windows 7 / Windows 2008 R2.

The latest one I had to work on has all of the latest Microsoft patches and all of the latest firmware provided by IBM. It is brand new and our processes have us update everything on Day one to as new as it can be upgraded. New out of the box, with a standard image on it, I sent out 5 of these devices last week. Only one experienced the issue. All 5 are identical otherwise.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo
OS
Windows 7
Antivirus
Sophis
Browser
IE 8
same problem Windows 8.1

I know this thread is old, but I have this same problem with a Dell laptop running Windows 8.1. My husband's laptop is on the same router and network, and he does not experience the problem. The problem occurs about once a month, always a day or two after a Windows security update.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Dell
OS
8.1
CPU
intel
Antivirus
mcAfee
Browser
IE
Back
Top