Resetting all network settings windows 8. The netsh winsock reset command to reset the network protocol stack.  Eliminate Poltergeist.  Using a restore point

Resetting all network settings windows 8. The netsh winsock reset command to reset the network protocol stack. Eliminate Poltergeist. Using a restore point

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 :

  • first you need to download avastfix(links above)
  • unpack to disk C:\(there is a folder in the archive, so after extracting the path will be like this C:\avastfix\)
  • if you have avast, then disable it: in the lower right corner, find the avast icon (near the clock), right-click on it and select avast screen management , then you need to specify permanent shutdown
  • run fixtcpip.bat then the computer will restart
  • after the reboot, we check the network operation, for example, by pinging the Google server: on the keyboard, simultaneously press the checkbox (windows logo), between ctrl and alt, and a letter R, that is Win +R. In the window that appears, write cmd, you have opened a command line, in it write ping 8.8.8.8 , should appear

    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

  • I hope the network / Internet has worked for you, now you need to update the avast databases, if it is not possible to update, then you can exclude this file from checking in the avast settings:
    C:\Windows\system32\drivers\TCPIP.sys (you may have windows installed on a different partition, e.g. D: )
  • now you can turn on the antivirus, in the same place where you turned it off, only now turn on all screens

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

  • to begin with, we’ll still turn off avast (see the 3rd paragraph above “if you have ...”)
  • file tcpip.sys can be copied from folder C:\Windows\system32\dllcache , but maybe avast also deleted it, then you can take a bootable CD / DVD / USB disk and find this file there in …\I386\TCPIP.SY_. The file can also be taken from working system. But if you have nowhere to get this file from, then here is the link for SP3 (if you have SP2, you can ask)
  • restart your computer
  • check the network / Internet, if it works, then update avast and run avast (see the last paragraph of the 1st method)

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:

  • run cmd
  • do netsh int ip reset resetlog.txt
  • restart your computer

7. And now the most difficult thing is reinstalling the TCP / IP stack in windows XP manually.

  • Download windows to Safe mode , that is, turn on the computer and repeatedly click on F8 until the menu appears download windows, select Safe mode
  • Log into the registry StartRunregeditOK or Win +R )
  • Delete two keys and exit the registry:

    HKEY_LOCAL_MACHINE/System/CurrentControlSet/Services/Winsock
    HKEY_LOCAL_MACHINE/System/CurrentControlSet/Services/WinSock2

  • Next, go to the folder %windir%\inf(usually C:\Windows\inf) in which to find the file nettcpip.inf and edit it (you can use a regular notepad), you need to change it in the section key Characteristics = 0xa0 on the Characteristics = 0x80 . Save and close the editor
  • Go to Network connections , then in properties and select a network connection (any, since the protocol is the same for the entire operating system). Click InstallProtocolInstall from disk - insert C:\windows\inf(change the drive letter to my own) - OK - choose Internet Protocol (TCP/IP) - OK
  • You should have stayed in the connection properties on the General tab (without additional windows), you can now delete Internet Protocol (TCP/IP) by pressing the button Delete
  • Restart your computer
  • Follow the second method (if the file exists, then replace), namely copy tcpip.sys v %windir%\system32\dllcache and %windir%\system32 .
  • Now you need to install the protocol, as it was written a little higher (point 5)
  • Should work right away, if it doesn't work then restart your computer
  • I hope everything worked out for you, congratulations!

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.

Reset DNS, reset Winsock and reset TCP/IP protocol

Method 1. Open a command prompt as an administrator and type the commands in order, pressing Enter after each one.

  • netsh winsock reset - Reset Winscock.
  • ipconfig /flushdns - Flush DNS cache.
  • netsh int ip reset resettcpip.txt - Reset TCP/IP.
  • ipconfig /renew - Renew IP address

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:

  • Google DNS: 8.8.8.8 - 8.8.4.4
  • Yandex DNS: 77.88.8.8 - 77.88.8.1
  • DNS CloudFlare: 1.1.1.1 - 1.0.0.1

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:

  • chrome://net-internals/#dns - for Google Chrome
  • browser://net-internals/#dns - for Yandex Browser

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:

  • The speed of downloading files via TCP is very low (at the same time, it can download quickly via UDP);
  • When you turn on the computer for a while, a couple of minutes, the Internet works fine, but then it disappears completely (the speed drops to 0);
  • The Internet works and the download speed is normal, but the downloaded file is broken because it is not fully downloaded (most likely the virus intercepts some of the packets during transmission, but sends a notification to the source that all packets were successfully received).

In addition to viruses, your Internet connection can also be “broken” by you (or “itself bugged”)

Some examples:

  • The computer does not receive an IP address automatically (via DHCP);
  • IP addresses are pinged but not pinged by name;
  • The computer receives an IP address of this pattern 169.254.*.* ;

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.

  1. No ping by IP address, but reachable by name or vice versa. However, the default settings have not changed.
  2. A drop in the speed of downloading files from the Internet, as well as a complete disconnection some time after turning on the PC.
  3. 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.
  4. Inability to obtain an automatic IP address with a configured DHCP server.
  5. 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