If you use a lot of public WiFi networks there may be times were networking on your Windows device seems to stop functioning even though you can connect to wireless networks. This tutorial will show you how to fix Windows networking problems with the Windows netsh command.
Update for Windows 10 Users: There is a faster, although much more severe, way of doing this in the latest version of Windows 10. Click on the WiFi icon in the taskbar. Then click on Network & Internet Settings link. Scroll down the settings page until you see the Network Reset link and click it. Read the warnings shown about doing a network reset and click the Reset Now button if you still want to use this method. Unlike the method below, this wipes out everything, including any saved WiFi network settings and passwords. Use it only for really tough problems that the procedure below won’t fix.
Type cmd into the Windows search box on your task bar. Next, right-click on the search result labeled Command Prompt. and click on Run as administrator in the pop-up menu. If you are not logged in as an administrator, you will be prompted to enter log-in information for an administrator account on your computer. (This procedure will not work in a Standard Windows account)
Type the following commands into the command prompt window…
netsh int ipv4 reset netsh int ipv6 reset netsh int ip reset netsh int tcp reset netsh winsock reset
Reboot your device and try connecting to a WiFi network. Test the connection by opening a web browser and navigating to a public web page.
Optionally, you can save these commands in a text file on your Desktop, then rename the file to network-reset.cmd. After that you can right-click on this command file and run it as administrator, followed by a reboot. This will save some time typing out these commands.