The following are two of the most handy commands I have come across for repairing PC’s:

These are accessed by going to start, run typing in “cmd” and typing the following in the command prompt:

Reset TCP/IP

netsh int ip reset resetlog.txt

Reset Winsock:

netsh winsock reset

Back in the day, I used to reset Winsock by a longer and more risky process which involved deleting the Winsock and Winsock2 registry folders and reinstalling TCP/IP by hand from a windows INF File; the above command is much much easier.

Once you reboot your computer your network settings should have been reset and you should be able to connect to the internet and see other local computers on the network, barring your network is set up right.

I always use these commands especially after removing a virus. Virus tend to corrupt whatever they were infecting and often will destroy your networking settings in favor of their own. Most anti virus / malware removal tools will remove the virus but not reset your settings to what they used to be as any record of that is usually long gone.

Hope this helps, and good luck!


Digital Nomad. Programmer, Entrepreneur. Academic, Philosopher, Spiritualist. Gamer, VR/AR, IoT & Wearables. CTO Miami, FL Native

Next Post