# PCs: Ping My Internet Connection!

**URL:** <https://boards.straightdope.com/t/pcs-ping-my-internet-connection/576443>\
**Category:** Factual Questions\
**Created:** [March 29, 2011, 11:49pm UTC](https://boards.straightdope.com/t/pcs-ping-my-internet-connection/576443 "2011-03-29T23:49:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jinx](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@Jinx](https://boards.straightdope.com/u/Jinx)\
**Post date:** [March 29, 2011, 11:49pm UTC](https://boards.straightdope.com/t/pcs-ping-my-internet-connection/576443/1 "2011-03-29T23:49:55Z")

</div>

Does any SDoper recall the command to test the internet connection when the PC won’t connect? I am not referring to the windows-friendly option to allow you to let the PC self-diagnose. Instead, I am trying to recall the right command to type into the “Run…” box. Any clues?

---

<div class="post-metadata">

**Author:** ![panamajack](https://avatars.discourse-cdn.com/v4/letter/p/47e85d/32.png) [@panamajack](https://boards.straightdope.com/u/panamajack)\
**Post date:** [March 29, 2011, 11:56pm UTC](https://boards.straightdope.com/t/pcs-ping-my-internet-connection/576443/2 "2011-03-29T23:56:52Z")

</div>

Try ‘ipconfig’ for starters. It’ll tell you some information about your network connection, including IP address.

It may help slightly if you know which system you’re running, and tell us what exactly you’re trying to do, or what the problem is specifically.

---

<div class="post-metadata">

**Author:** ![nesta](https://avatars.discourse-cdn.com/v4/letter/n/a4c791/32.png) [@nesta](https://boards.straightdope.com/u/nesta)\
**Post date:** [March 30, 2011, 12:30am UTC](https://boards.straightdope.com/t/pcs-ping-my-internet-connection/576443/3 "2011-03-30T00:30:50Z")

</div>

In the run box type “cmd” (without the quotes) to start a command prompt. Then as **panamajack** suggested type “ipconfig” and hit enter. Look for the adapter that you are using to connect to the internet – it will probably be labeled Local Area Connection, but might be wireless or something else. Note the Default Gateway on that adapter, then type “ping Default\_Gateway\_IP” where the Default\_Gateway\_IP is the one from ipconfig.

If you have a router your IP address will probably be 192.168.X.X, with the router as the default gateway on a different 192.168.X.X address. If the ping comes back with four replies then you are connected to the router correctly. If it times out then you probably have a setting or wiring problem somewhere.

If you can ping the default gatway try pinging something on the internet, like 8.8.8.8.

---

<div class="post-metadata">

**Author:** ![djinteractive](https://avatars.discourse-cdn.com/v4/letter/d/b4bc9f/32.png) [@djinteractive](https://boards.straightdope.com/u/djinteractive)\
**Post date:** [March 30, 2011, 1:27am UTC](https://boards.straightdope.com/t/pcs-ping-my-internet-connection/576443/4 "2011-03-30T01:27:30Z")

</div>

Furthermore you can try to ‘ping 127.0.0.1’. If you can’t do that you could have a protocol issue.  
127.0.0.1 is similar to pinging your own computer without going on the internet and tests that your internal settings are ok.

---

<div class="post-metadata">

**Author:** ![Derleth](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@Derleth](https://boards.straightdope.com/u/Derleth)\
**Post date:** [March 30, 2011, 2:47am UTC](https://boards.straightdope.com/t/pcs-ping-my-internet-connection/576443/5 "2011-03-30T02:47:39Z")

</div>

Think of it like travel:

Being able to ping 127.0.0.1 means you can go across the room.

Being able to ping your router means you can drive to the edge of town.

Being able to ping 8.8.8.8 (a public DNS server, in case you don’t know) means you can hop a plane and fly out to Tokyo if you want.

---

<div class="post-metadata">

**Author:** ![Orionizer](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/orionizer/32/4442_2.png) [@Orionizer](https://boards.straightdope.com/u/Orionizer)\
**Post date:** [March 30, 2011, 11:26am UTC](https://boards.straightdope.com/t/pcs-ping-my-internet-connection/576443/6 "2011-03-30T11:26:58Z")

</div>

Also, in the ipconfig screen, if your ip address starts with 169.x.x.x, it usually means you were unable to obtain an ip address from your DHCP server (which is probably your router). If this is the case, you might try rebooting your router and modem and then recheck ipconfig after that to see if you obtained a new address.
