What to do if network protocols do not work? When you try to ping the server / ip address you get the error "Unable to contact the IP driver. Error Code 2"? Then you have something with the TCP / IP stack, let's take a closer look.
I will start with the easy and simple, ending with more complex solutions to the problem.
Perhaps you have Avast installed on your computer and the problems started after updating the anti-virus databases, on December 6, 2012, Avast added a file to its databases, shortly after updating the databases, Avast found this file in system files and deleted it (perhaps placed it in quarantine).
It doesn’t matter, below I will write how to restore the TCP / IP stack, after which the network should work (if, of course, it worked before):
1. The easiest way is to use avastfix.zip :
Packet exchange from 8.8.8.8 to 32 bytes:
Response from 8.8.8.8: number of bytes=32 time=55ms TTL=48
or something similar but not a network driver error
Let's now look at what is in this "miracle" archive:
fixtcpip.bat - a script that imports standard stack settings into the registry, unpacks the archive tcpip.rar with help UnRAR.exe v C:\Windows\system32\drivers\
and restarts the computer
2. Let's now consider manually restoring/copying a file
3. If the previous methods did not help, then Avast is most likely not to blame. Check if file exists C:\windows\inf\nettcpip.inf
if it exists, then proceed to the next method. If the file does not exist, then it needs to be copied from the working system, no working system? Don't worry, download from here
4. Reinstalling the TCP/IP stack using Microsoft Fix it 50199
5. You can try the utility TCPIP.Sys RestoreTool
from the company UnHackMe
, I did not use this utility, but according to the description, it should reinstall the TCP / IP stack in operating systems: Windows 2000/XP/Vista/Seven/8 32 and 64-bit
6. Manually reset the TCP/IP stack. On the Microsoft website in the article kb299357 it is written that to reinstall it is enough to execute just one command in command line:
7. And now the most difficult thing is reinstalling the TCP / IP stack in windows XP manually.
HKEY_LOCAL_MACHINE/System/CurrentControlSet/Services/Winsock
HKEY_LOCAL_MACHINE/System/CurrentControlSet/Services/WinSock2
Many have encountered problems connecting to the Internet and errors in browsers, be it Google or Yandex, and there can be a lot of reasons, but the main reason is sometimes hidden in the clutter of the network card. If you cannot connect to the Internet, your Internet Protocol TCP/IP may be corrupted and may need to be reset. TCP/IP is one of the main components that your Windows computer needs to successfully connect to the Internet. Even if you are connected to the Internet, the packets are not transmitted over the network, and when you try to connect to the URL, you may see the message "The page cannot be displayed".
There is also a service like Winsock, which determines how the network software Windows should be able to access network services. Windows ships with a dynamic link library (DLL) called winsock.dll that implements the API and coordinates programs and TCP/IP connections. But sometimes Windows Sockets or Winsock can get corrupted, causing you to be unable to connect to the Internet and browsers to throw various errors.
If you cannot open the website normally, then the problem is most likely in DNS cache, which over time is clogged with any obsolete information. Windows has three types of DNS cache: Memory Cache, DNS Cache, Thumbnail Cache. Clearing the memory cache can free up some system memory, while clearing the thumbnail cache can free up hard drive space, and clearing the DNS cache can fix internet connectivity issues and various browser errors.
What errors can be corrected in this way? This will fix internet connection issues that throws errors 651, 691, 678, 619, 868, 720, 502 Bad Gateway will fix browser errors like NETWORK_FAILED, ERR_EMPTY_RESPONSE, unable to access site, ERR_INTERNET_DISCONNECTED, ERR_CONNECTION_RESET, err_cache_miss, err_name_not_resolved, err connection refused, Err Connection Closed, etc. When you can't open a page or when the site doesn't want to be displayed.
Important:Before the procedure, check the wires themselves, turn your router / modem on and off, restart your PC and check if the error is resolved.
Method 1. Open a command prompt as an administrator and type the commands in order, pressing Enter after each one.
We restart the PC.
Method 2. Press Win+R and type ncpa.cpl to open network connections. Next, right-click on the adapter through which you are connected to the Internet and select " Properties". Open Properties IP version 4 (TCP/IPv4) and in the new window set to " Use the following DNS server addresses" and the following DNS:
Method 3. Open your browser and paste the address below into the address bar. Next click on Clear Host Cache to clear the browser's internal DNS cache:
Sometimes, it happens that the Internet connection settings get lost or simply does not want to connect to the network (does not receive an IP address via DHCP). Similar problems may occur as a result of the operation of some malware(viruses). You can torment those for a long time. support from your provider or call a specialist at home. You can try to fix the problem yourself.
There is a special program to reset TCP/IP in Windows NT (2000/XP/Seven) operating systems netsh.exe.
netsh.exe- (Network Shell - Network Shell) allows you to configure network settings.
Some nasty viruses get into WinSock and mess up.
Symptoms:
In addition to viruses, your Internet connection can also be “broken” by you (or “itself bugged”)
Some examples:
If you have cleaned yourself of viruses, then you can proceed to recovery. ATTENTION! The following procedures will reset the network settings. I strongly recommend overwriting the settings.
What would reset winsock:
If the first command did not solve the problem, you can reset the TCP / IP stack to "factory" settings:
In the same place on the command line, enter the command:
netsh int ip reset c:\resetlog.txt
In this case, the reset log will be saved in the root of the C:\ drive; if you omit the prefix c:\, then the log will be saved in the current directory. After that, you should restart your computer.
After using this command, the following registry branches will be reset to the "factory" ones in the registry:
SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\
SYSTEM\CurrentControlSet\Services\DHCP\Parameters\
You can use these commands together one after the other. By the way, they also reset the DNS cache.
About DNS cache issues: For example, the site moved to another hosting, as a result, its IP address changed. And since you still have not quite fresh data in the cache, when you enter the site name, you will be taken to the old IP address, where the site no longer exists.
In order not to reset all settings, try the command ipconfig /flushdns If it doesn't help, use netsh int ip reset resetlog.txt- this is guaranteed to help and reset everything related to network connections. 😉
Do you know that you can reset the Windows 8 operating system to factory settings and parameters, in almost the same way as the more modern Ten ?! So there is such a possibility. It is perfect if your computer started to be very weird, and you don’t know how to reinstall the OS, or simply it’s not possible.
The only condition is that you need to prepare an installation disk or USB flash drive, since reset Windows 8 will replace old system files with new ones. I would also advise in advance on the Internet to find and download drivers for motherboard, network card, video adapter and sound.
When everything is ready, we do it. Move the mouse cursor to the right, towards the edge of the screen, to open the Windows 8 sidebar.
Another way to open it is to press the key combination Win + C.
Click on the "Settings" icon.
In the list of G8 options, click on the line "Change computer settings".
The following menu will appear:
We find the subsection "Update and Recovery".
On the right, two options will be displayed with which you can reset Windows 8 to factory settings.
First - Recovering a computer without deleting files. If you click the "Start" button, the system will analyze the current state of the PC and start copying system files from the installation media. This will take about half an hour. All your files will remain in place, only all programs will be deleted, except for the “tiled” programs - which the wizard will notify you about.
Second - Deleting all data and reinstalling Windows . Here, the contents of the entire disk will already be cleared and all user files from it will be deleted. After that, the OS will be reinstalled from the installation media:
This method will allow you to completely reset Windows 8 and return to the initial state. In slang, this is called "Hard Reset". In some laptops (for example, Sony), this function is present in the device's recovery menu.
Friends, hello everyone. Happy New Year old new year! It's good when the holidays so often come one after another. But nevertheless, one should not forget about work either, especially when you like it.
And today we will talk about the team netsh winsock reset. I'll tell you what kind of animal it is and why it is needed. In fact, with its help, I have restored working capacity more than once in my modest administrator experience.
- No ping by IP address, but reachable by name or vice versa. However, the default settings have not changed.
- A drop in the speed of downloading files from the Internet, as well as a complete disconnection some time after turning on the PC.
- Inability to connect to a network with manual IP address settings, while everything works in automatic mode. Again, though, it could be the other way around.
- Inability to obtain an automatic IP address with a configured DHCP server.
- The absence of any IP address, gateway and subnet mask values when the connection to the local network is active.
In general, when inexplicable glitches begin to occur with the network settings of the machine, it will help us netsh winsock reset . It is with the help of this command that you can restore the network settings to default and resume working.
This procedure is also called dumping the protocol stack winsock and is almost always used in conjunction with a TCP/IP reset. That is, nulling Windows components, which are responsible for network connections.
Now about how, as a result of which such problems occur. Here, as they say, it doesn’t take much for trouble. Often this is caused by viruses that have penetrated the computer, various conflicts or incorrect installation of network card drivers, and so on.
But enough theory, let's get down to business. Just remember that as a result of such a reset, all network settings on the PC will also be deleted. Therefore, study them in advance. This can be especially important on office computers with dedicated .
So, open and enter the following combination of commands. The screenshot below is taken in the environment operating system Windows XP, but in Win 10 everything will happen identically, you only need to run "cmd" as administrator:
- netsh int reset all
- netsh winsock reset
Then you should definitely restart the computer and you can check the behavior on the network for adequacy. By the way, I completely forgot to say that before resetting the winsock protocol stack, it is advisable to thoroughly treat the system, otherwise everything can happen again. Remember Poltergeist