How to reset network adapters on Windows

Had to help a friend of mine and found this, but the second time was hard to find the exact combinations of commands. So, I’m saving it here for my notes:

Open a terminal with Administrator privileges and then type the following commands

netsh winsock reset
netsh int ip reset
ipconfig /release
ipconfig /renew 
ipconfig /flushdns

Posts by me