Solving a network problem can be hard and frustrating. While you can check your internet connection using the Windows Network Diagnostic tool, it is hardly enough to solve most problems. Sometime, you might have to troubleshoot via the hard way – the command line way.
There are several advantages to using th command line instead of the visual interface:
In this article, we will show you how to diagnose and fix network problems using the command line.
To get started, first make sure that you are running the command prompt with Administrator privilege.
You can use the
ipconfig tool to check if you are experiencing some problem with your cable. Windows will show up a list of the interfaces and if they are connected or not.
A gateway is the device, usually a router, that connects your computer to other networks and Internet. If you cannot connect with your device, it is pretty sure you are not going to connect to the Internet. First you need to know the IP address of the device. You can use
Ipconfig to give us the information about the default gateway:
Now you can use
ping to test if the gateway respond. This tool informs if a device with a given IP is answering. In plain English, with this test, we know that our network adapter, the cable and the router are connected correctly.