How to Ping Google from Windows or Linux

Photo of author

By Victor Ashiedu

Published

This Itechguide teaches you how to ping Google. The guide covers steps to ping Google from a Windows PC or from Linux.

Option 1: Ping Google in CMD from a Windows PC

  1. Open command prompt – type cmd into the Windows search bar. Then, click Command Prompt.
How to Ping Google from a Windows PC
  1. When Command Prompt opens, type the word Ping, press Enter on your keyboard to add a space after Ping. Finally, add Google including the domain extension.
  2. For example, to Ping Google.com, type the following:
Ping Google.com 
  1. To initiate the Ping, press Enter key on your keyboard. If your PC is connected to the internet, you will receive what is called a “ping reply”.
Ping resolves the Google domain name into its IP address, and tries to contact that IP. If the IP is online, ping will return a “reply”.
How to Ping Google from a Windows PC
  1. By default, Ping returns 4 replies. To Ping Google.com in CMD continuously, add -t swicth to the Ping command.
Ping -t Google.com 
  1. Ping will continue until you press Ctrl and C keys on tour keyboard.
  1. Finally, for this section, you can Ping other Google country domains. For instance, Google.co.uk or Google.ca. Here are the ping commands.
Ping Google.co.uk  
Ping Google.ca  

Option 2: Ping Google from Linux Terminal

  1. From a Linux shell, type Ping, followed by a space. Then type Google including the domain extension. For example…
ping Google.com
For Linux to aceept the ping command, ping MUST be in lowercase.
  1. To execute the command, press Enter. The domain name, Google.com will be resolved to its IP. If the domain is online, Ping will receive a “Reply”. See the second image below.
Unlike Windows, by default when you ping in Linux it is continuous ping.
  1. To stop the ping, press Ctrl & C keys on your keyboard.

Option 3: Ping Google by IP Address

If you want to ping a Google domain by IP, the first step is to find the IP address of the Google domain. For example, to ping Google.com by IP, open command prompt (Windows PC), enter the command below and press enter:

nslookup google.com

The command will display the IP address (highlighted in my screenshot below) of the Google domain you need. Copy the IP address and ping it – see the command after the screenshot below.

To copy the IP address in Command Prompt, highlight it and press the enter key on your keyboard
How to Ping Google By IP Address
Ping 216.58.211.174
How to Ping Google By IP Address

As mentioned earlier, in CMD, Ping replies just 4 times. If you want to ping Google continuously, add the -t switch to the ping command. Here is a sample command…

Ping -t 216.58.211.174

When you add the -t switch to the Ping command, Ping will reply continuously. However, to cancel the ping command, press Ctrl and C keys simultaneously on your keyboard.

Frequently Asked Questions

1. What is Google IP address to ping?

To determine a Google IP address to ping, open command prompt, enter nslookup google.com and press enter key on your keyboard. The command will display an IP address. You can ping the displayed IP address.

2. Is Google Ping illegal?

No, like any other domain on the internet, you can ping any Google domain. It is completely legal.

3. How do I ping my internet connection?

If you are connected to the internet, open Google.com and search “what is my IP address” – without the quotes. Copy the IP address, open CMD and use the command – Ping <your IP address> and press enter. Replace <your IP address> with your actual IP address from your Google search

4. Can I use 8.8 8.8 DNS?

Yes, you can. 8.8.8.8 is one of Google’s Public DNS IP (IPv4) addresses. By default, your router should have its own DNS server. However, if you know what you are doing, you can open your network card and enter the DNS server IP 8.8 8.8 – see detailed steps here. You could also use 8.8.4.4 – the second Google’s Public DNS IP address.

5. How do you stop ping?

Press Ctrl and C keys simultaneously.

6. How do you ping continuously?

Add -t switch to the Ping command. For example, to Ping Google.com continuously, enter Ping -t Google.com, then press enter. To stop the continuous ping, press Ctrl and C keys simultaneously.

7. Why is ping request timed out?

If ping request times out, it means that the device you are pinging is not replying. This may not necessarily mean that the device is offline. Some devices block ping requests. So if you ping a device that blocked ping requests, the device will send you a ping request time out.

I hope you found this Itechguide helpful. If you found this article helpful, click on “Yes” beside the “Was this page helpful” question below.

You may also express your thoughts and opinions by using the “Leave a Comment” form at the bottom of this page.

Finally, for more Windows Itechguides, visit our Windows 10 How-To page.

About the Author

Photo of author

Victor Ashiedu

Victor is the founder of InfoPress Media, publishers of Ilifeguides and Itechguides. With 20+ years of experience in IT infrastructure, his expertise spans Windows, Linux, and DevOps. Explore his contributions on Itechguides.com for insightful how-to guides and product reviews.

Related Articles

Get in Touch

We're committed to writing accurate content that informs and educates. To learn more, read our Content Writing Policy, Content Review Policy, Anti-plagiarism Policy, and About Us.

However, if this content does not meet your expectations, kindly reach out to us through one of the following means:

  1. Respond to "Was this page helpful?" above
  2. Leave a comment with the "Leave a Comment" form below
  3. Email us at [email protected] or via the Contact Us page.

Leave a comment