Troubleshooting Your Network With Command Prompt Networking
I’ve done quite a bit of networking throughout my computer career (although mostly home networking), and there’s some little tricks I’ve been using I figured I could share. The programs I’ll talk about here are really just for information gathering (the whys and what’s of what isn’t working) so they won’t fix anything on their own. But hopefully they should be able to narrow down any problem you may be having and make fixing your connection a little easier.
So with that said - and just so I’ve said it - a lot of this is going to be simplified to a really basic level. So no “that’s not exactly how it works!” or “that’s not what that does!” comments are necessary. I’m well aware.
Let’s Get Started
To access these, we need something that’s a blast from the past: the Command Prompt. It used to be everything was run from the command prompt. Now it’s just some sad vestige of DOS, that for some reason is still the only way to get some of this information, without having some 3rd party program.
So to get to a command prompt you can find it in your Windows Start bar (Start->Accessories->Command Prompt), but personally I hate searching through the menu for it. You may find it quicker to use the Windows Key+R to bring up run, then type in “cmd” (without the quotes). Hit “Enter” and voila, your own little Command Prompt.
So How Does This Help With Networking?
Let’s say you’re having trouble with your network; your PC can’t connect to any websites. Well if you type in “ipconfig” it’ll bring up most of your current network information (IP address, subnet mask, gateway) or it’ll tell you if it’s disconnected. You can also use ipconfig to get extended information (including your MAC address) by using “ipconfig /all”.
Ok, so you’ve checked your IP address, and that’s all looking good, but something still isn’t happening between your computer and the network. Time to trying pinging something. The “ping” command will send a basic set of packets to the target and post how long it took to get a reply from that target. For example, if you use “ping google.com” you’ll ping the Google host (basically saying “Hi there!”). Then the Google host will send back a reply (”Hello!”). Then you’ll get a readout as to how long it took (in milliseconds) for that whole exchange to happen. Ping will automatically do this 4 times, so you can get a very basic average as to how fast your connection is. Also if some of your pings time out, it’ll give you a loss rate (which means that the connection your on is faulty in some way).
*** Note from Saman: FYI, you can add the ” -t” switch to send packets indefinitely - or until you stop it! So you would type (without quotes): “ping google.com -t”. To stop pinging, hit CTRL+C ***
Now you’ve done that, but for some reason it all timed out. Maybe it gave you a “host cannot be reached error” of some kind. Time to see if you can find where the breakdown is. The command “tracert” can be used to trace the route a packet takes from your computer to the target. It’ll ping each target (each node along the way) until it reaches the target you picked. So you’re in a hotel, using their wireless (a situation I am all too aware of), and you can’t connect to any site. Your computer says you’re connected, and you have a local IP address, but no websites are loading. So you run “tracert google.com” and start watching what jumps it takes. Well, it only takes one jump, to your gateway (the wireless network hub) and dies. Well now you know that the problem is with them. Since you can’t get any pings outside their network, you can call them up and ask what’s going on.
So some of these may have been familiar. In fact if you’ve ever talked to a help desk drone about your non-function connection, you may have been asked to run some of these. Hopefully with this introduction you’ve gotten a little better understanding of what each one does, and why they’re so useful.
And now you can stop asking me why I run “ipconfig” so often. ![]()
Kuribo Mario Hops For These Related Posts:

An excellent How To Derek! I wasn’t aware of the tracert command - That would really help at work! Thanks!
The “Trace Route” tool or “tracert” command is an excellent tool to troubleshoot connectivity. Just as Derek said, tells you if it is an internal problem or other. Great for all kinds of items too, if you have any static routes set in your routers, you can watch the “hops” in the trace route and see if it is being redirected correctly. This comes in handy when tracking down point to point connections and such.
Great great tool!
Another great article Derek - thanks!
[...] Minic Rivera wrote an interesting post today onHere’s a quick excerptLet’s say you’re having trouble with your network; your PC can’t connect to any websites. Well if you type in “ipconfig” it’ll bring up most of your current network information (IP address, subnet mask, gateway) or it’ll tell you if … [...]
[...] unknown wrote an interesting post today onHere’s a quick excerptLet’s say you’re having trouble with your network; your PC can’t connect to any websites. Well if you type in “ipconfig” it’ll bring up most of your current network information (IP address, subnet mask, gateway) or it’ll tell you if … [...]
Saman actually I have been using this for a while, but thats not why this comment is here. These things come in all magazines and when people see this on our blogs they think we got them from those mags…
I’m not sure why that’s considered a bad thing. You could consider most of these posts as repositories of information. Yeah, a magazine may have some of these, but it may not have all of them, and it definitely wouldn’t have the interaction.
You’d have to write in and wait to get any extra info about any of this, if it were a magazine.
Also, I wrote this, not Saman.
Very true Derek, you can get some of this info from a magazine - but what you have to deal with is the “What issue was that tip in?!?” factor. Magazines don’t have a search field or screen casts!!
Thanks for your concern though, I hope that you can find more info on this site then in all of the volumes of any magazine!
I said just that but this is a common mistake of many readers…
[...] say you’re having trouble with your network; your PC can’t connect to any websites. Well if you type in “ipconfig” it’ll bring up most of your current network information (IP [...]
The solution to this is u have to check ur proxy settings in the IE browser properties.