Resetting network settings: step-by-step instructions for operation and configuration, tips and tricks. netsh winsock reset command to reset the network protocol stack. Eliminating Poltergeist Reinstalling the tcp ip protocol windows 8

Many have encountered Internet connection problems and errors in browsers, be it Google or Yandex, and there can be many reasons, but the main reason is sometimes hidden in clutter network card. If you can't connect to the Internet, your Internet Protocol TCP/IP may be damaged and you may need to reset it. TCP/IP is one of the main components your Windows computer needs to successfully connect to the Internet. Even if you are connected to the Internet, packets are not sent over the network, and you may see a "Page cannot be displayed" message when you try to connect to a URL.

There is also such a service as Winsock, which defines how network software Windows must be able to access network services. Windows comes 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 become damaged, as a result of which you will not be able to connect to the Internet and browsers may throw various errors.

If you cannot open the website normally, then the problem is most likely DNS cache, which over time becomes clogged with all sorts of outdated information. There are three types of DNS cache in Windows: Memory cache, DNS cache, Thumbnail cache. Clearing the memory cache may free up some system memory, while clearing the thumbnail cache can free up hard drive space, and clearing the DNS cache can fix Internet connection problems and various browser errors.

What errors can be corrected using this method? This will fix internet connection issues that are throwing errors 651, 691, 678, 619, 868, 720, 502 Bad Gateway will fix errors in browsers like NETWORK_FAILED, ERR_EMPTY_RESPONSE, cannot access the 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 enter the commands in order, pressing Enter after each one.

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

Reboot the PC.

Method 2. Press Win+R and enter 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
  • DNS Yandex: 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 into address bar Below is the address. 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

Are you having problems connecting to the Internet on your computer or smartphone? Often the situation can be simply resolved by turning to reset network settings. We will tell you how to do this on popular platforms - versions of Windows and Android - later in the material.

Why do you need a reset?

Why, in fact, reset network settings? This manipulation is vital for situations when network settings are incorrectly changed, as a result of which accessing the Internet from a computer or smartphone becomes impossible. What is the reason? Settings can be changed by malicious applications and viruses, as well as by the user himself.

In this case, problems with IP or DNS appear. Consequence: the Internet is slow, some sites do not open at all, a connection to the router or provider cannot be established, and Wi-Fi cannot be distributed from the device.

Even experienced users believe that resetting network settings can, in most cases, cope with many Internet problems. The essence of the procedure is that it will reset the settings to factory settings, and also clear all parameters that were changed by the system, programs or the user himself.

Nuances of the procedure

Resetting network settings is a fairly simple manipulation that even an inexperienced user can handle. But before we get started, let us introduce the reader to two important nuances:

  • You should not perform a reset yourself on a work or school computer or other corporate device that does not personally belong to you. It is better to seek help from system administrator organizations. In this case, the specialist manually sets certain TCP/IP protocol settings.
  • It is possible that after this manipulation you will need to re-configure your computer’s network settings to connect it to the Internet. For example, in some cases this is required by the provider.

Now let's look at the specific instructions for different versions popular operating systems.

Windows Vista: reset options

Reset network adapter here it is available in two variations. Let's look at them.

The first option is to use a special Microsoft utilities Fix it. The program will help the user reset TCP/IP settings to factory settings. You can download it on the official Microsoft website. There is no need to perform any complicated actions: just run the utility on your computer, and the program will handle the problem itself. Once the task is completed, be sure to restart your PC for the solutions to take effect.

The second option is to manually change the settings. Let's look at this procedure step by step:

  1. Click on the "Start" menu.
  2. In the search bar you need to enter the text cmd. Click on "Enter".
  3. "Command Prompt" will appear in front of you.
  4. Right-click on the inscription.
  5. Select "Run as administrator" from the context menu list.
  6. Write (or copy from the article) the following into the line: netsh int ip reset logfile.txt.
  7. Execute the command (press "Enter"). As a result, the TCP/IP settings will be reset to factory settings, and the changes made will be written to the log file of the current directory from where it was launched.
  8. For the settings changes to take effect, all you have to do is restart your PC. That's all!

"Windows 7": via command line

First of all, let's look at resetting network settings using the command line. We begin the procedure as follows:

  1. Run a command prompt on your computer as its administrator.
  2. The easiest way: go to the "Start" section, then enter cmd in the search bar.
  3. You will see "Command Prompt" in the results. Click on the inscription with the right mouse button.
  4. Select "Run as administrator" from the context menu.
  5. Run this command: netsh winsock reset. You can type it yourself or copy and paste from the text of this article.
  6. To execute the command, do not forget to press the "Enter" button.
  7. After the command is executed by the system, restart your computer.
  8. Check your internet access. As a rule, in most cases these simple steps are enough to completely solve the problem.

"Windows 7": if the command line didn't help...

However, sometimes resetting network settings via the command line does not work. What to do in this case? Go back to the command line:

  1. Repeat steps 1-4 from previous instructions.
  2. Give your computer a new command: "netsh int ip reset c:\resetlog.txt". It can be reprinted or also copied from this text.
  3. Run the command and restart your computer. The problem should disappear after these steps.

Some experts advise, to be sure, to execute the commands from the previous and this subheading one after another, and then also reboot your device. As a result of these manipulations, the network settings on your computer will be reset to factory settings.

"Windows 7": DNS cache reset

You now know how to reset network settings on Windows 7 (manipulation, by the way, is also suitable for later versions of the OS) via the command line. However, you may encounter a similar, but slightly different problem: “The DNS server is not responding,” “The DNS server address cannot be found.”

What to do in this case? All you need to do is reset the DNS. In this case, we turn to the command line again:

  1. From the Start menu, go to the command line.
  2. Enter or copy the following command from the text: ipconfig /flushdns.
  3. Check your internet connection.
  4. If the problem is not solved, we recommend that you refer to the two previous instructions.

"Windows 7": using the Microsoft Easy Fix utility

Network reset Windows settings also possible through special utility. You can download a program called Microsoft Easy Fix for free on the official Microsoft website.

How to use it? We offer an algorithm of simple actions:

  1. Launch the utility on your computer.
  2. Once the window opens, click on "Next".
  3. Then the program will independently introduce the necessary changes to the system’s network settings.
  4. When finished, the utility will prompt you to restart your computer.
  5. To do this, close the program and select reboot the system from the PC menu.

After this, the problem should disappear, and you will have access to the Internet on your computer again. And we will further analyze how to cope with it in the later tenth version.

"Windows 10": reset option

If you yourself have been “too clever” with the network settings or your device for no apparent reason stubbornly refuses to connect to the Internet, then we also suggest that you turn to a reset. On Windows 10 OS it is produced using a slightly different algorithm:

  1. Go to the settings menu. It can be found either through “Start” or by using the hotkey combination: Win + I.
  2. Go to the "Network and Internet" section.
  3. At this point you need a subsection called “Status”.
  4. Now scroll down to the very bottom of the page. There you will see what you need - “Network reset”.
  5. Click on the inscription. You will see a system warning: performing the action will remove and reinstall all existing network drivers, and will also restore the factory (original, original) network parameters. Note that you may have to reinstall your network software afterwards. For example, a VPN client.
  6. Click on "Reset Now". That's the whole procedure for resetting network settings in Windows 10.

As a result of these actions, the network settings will return to their original settings. The solution is quite drastic, so it is worth turning to it in cases where other methods of coping with the problem have proven powerless. Perhaps the situation can be saved by contacting a specialist.

Before resetting your settings, you should make sure that the problem is specific to your computer. Try connecting another device to the network. If there is also a lack of Internet access on it, then the problem is most likely with the provider or router.

Performing a reset on a smartphone

In conclusion, let's imagine resetting network settings on Android. Your smartphone may also experience problems with the Internet, which can only be solved in such a drastic way. We suggest you follow the instructions:

  1. Go to "Settings".
  2. Scroll through the menu, find the "Reset and Activation" item.
  3. Find the "Reset network settings" section.
  4. Here you just need to tap on the “Reset settings” button. In some smartphone models, the selected action must be confirmed.

If this manipulation does not help, then the solution is radical: completely reset the device to factory settings. But before that, you should copy important data from your smartphone.

Now you know how to reset network settings on various versions of Windows and phones on the Android platform. This solution allows you to cope with the situation when it is impossible to access the Internet from your device, when you accidentally changed the settings to incorrect ones. Available both through the settings menu, command line, and through a special utility.

Are you having problems connecting to the Internet on your computer or smartphone? Often the situation can be simply resolved by resetting the network settings. We will tell you how to do this on popular platforms - versions of Windows and Android - later in the material.

Why do you need a reset?

Why, in fact, reset network settings? This manipulation is vital for situations when network settings are incorrectly changed, as a result of which accessing the Internet from a computer or smartphone becomes impossible. What is the reason? Settings can be changed by malicious applications and viruses, as well as by the user himself.

In this case, problems with IP or DNS appear. Consequence: the Internet is slow, some sites do not open at all, a connection to the router or provider cannot be established, and Wi-Fi cannot be distributed from the device.

Even experienced users believe that resetting network settings can, in most cases, cope with many Internet problems. The essence of the procedure is that it will reset the settings to factory settings, and also clear all parameters that were changed by the system, programs or the user himself.

Nuances of the procedure

Resetting network settings is a fairly simple manipulation that even an inexperienced user can handle. But before we get started, let us introduce the reader to two important nuances:

  • You should not perform a reset yourself on a work or school computer or other corporate device that does not personally belong to you. It is better to seek help from the organization's system administrator. In this case, the specialist manually sets certain TCP/IP protocol settings.
  • It is possible that after this manipulation you will need to re-configure your computer’s network settings to connect it to the Internet. For example, in some cases this is required by the provider.

Now let's look at specific instructions for different versions of popular operating systems.

Do you know that it is possible operating system Reset Windows 8 to factory settings and parameters, almost the same as the more modern Ten?! So there is such an opportunity. It’s perfect if your computer starts acting weird and you don’t know how to reinstall the OS or it’s simply not possible.
The only condition is that you need to prepare installation disk or a flash drive, since Windows reset 8 will replace old system files with new ones. I would also advise you to find and download drivers for the motherboard, network card, video adapter and sound.

When everything is ready, we do this. 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 Win+C key combination.
Click on the “Settings” icon.

In the list of Eight parameters, click on the line “Change computer settings”.
The following menu will appear:

We find the subsection “Update and Recovery”.

On the right you will see two options that will allow you to reset Windows 8 to factory settings.

First - Recovering your 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 “tiled” ones - which the wizard will notify you about.

Second - Removing all data and reinstalling Windows. Here the contents of the entire disk will be cleared and all user files will be deleted from it. After this, the OS will be reinstalled from the installation media:

This method will allow you to completely reset Windows 8 and return it to its original state. In slang it's called " Hard Reset" In some laptops (for example, Sony) this function is present in the device recovery menu.

What to do if network protocols do not work? When you try to ping a server/ip address, you get the error “Cannot access the IP driver. Error code 2"? Then you have something with the TCP/IP stack, let's look at it in more detail.

I’ll start with the easy and simple, ending with more complex solutions to the problem.

Perhaps you have Avast on your computer and the problems started after the update antivirus databases, on December 6, 2012, Avast added the file to its databases; shortly after updating the databases, Avast found this file in system files and deleted it (possibly quarantined).

No problem, below I will write how to restore the functionality of 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 in the line above)
  • unpack, let's say to disk C:\(there is a folder in the archive, so after extraction 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, after which the computer will reboot
  • 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 command line, write in it ping 8.8.8.8, should appear

    Exchange of packets from 8.8.8.8 to 32 bytes:

    Reply from 8.8.8.8: number of bytes=32 time=55ms TTL=48

    or something similar, but not a network driver error

  • I hope your network/Internet is working, now you need to update the Avast database, 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 another partition, for example D: )
  • Now you can turn on the antivirus, in the same place where you turned it off, only now enable all screens

Let's now look at what's in this “miracle” archive:
fixtcpip.bat is a script that imports into the registry standard settings stack, unpacks the archive tcpip.rar with help UnRAR.exe V C:\Windows\system32\drivers\ and restarts the computer

2. Let's now consider manual file recovery/copying

  • First, let's turn off Avast (see point 3 above "if you have...")
  • file tcpip.sys can be copied from folder C:\Windows\system32\dllcache , but perhaps Avast deleted it too, then you can take a bootable CD/DVD/USB disk and find this file there in …\I386\TCPIP.SY_. You can also take the file from working system. But if you have nowhere to get this file, then here is the link for SP3 (if you have SP2, you can ask)
  • restart your computer
  • check the functionality of the network/Internet, if it works, then update Avast and launch Avast (see the last point of method 1)

3. If the previous methods did not help, then most likely Avast is not to blame. Check if the file exists C:\windows\inf\nettcpip.inf , if exists, then proceed to next method. If the file is not there, then it needs to be copied from the working system, no working system? No problem, 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 have not used 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. Reset TCP/IP stack settings manually. On the Microsoft website in the article kb299357 it is written that to reinstall it is enough to run just one command on the command line:

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

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

  • Boot windows into Safe mode , that is, turn on the computer and press repeatedly F8 until the menu appears windows loading, select Safe mode
  • Go to the registry ( StartExecuteregeditOK or Win +R )
  • Remove two keys and exit the registry:

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

  • Next you need to go to the folder %windir%\inf(usually C:\Windows\inf), in which you need 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 Characteristics = 0x80 . Save and close the editor
  • Go to Network connections , then go to properties and select network connection(any, since there is only one protocol for the entire operating system). Click InstallProtocolInstall from disk - insert C:\windows\inf(I change the drive letter to my own) - OK - select Internet Protocol (TCP/IP) - OK
  • You should have remained in the connection properties on the General tab (without additional windows), now you can 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 was written just above (point 5)
  • It should work immediately, if it doesn’t work, restart your computer
  • I hope everything worked for you, congratulations!