So, you are having a hard time logging in to a website or think that your router is having some trouble lately. Therefore, you keep wondering “what’s the problem, is it my ISP or there is some server issue”. The best way to seek wisdom, in this case, is to Ping that website.
Pinging a website is a very easy task. You just need a keyboard and a command-line application. In that application just type Ping command with that particular IP address, then it will send packets to that particular IP address and will let you know the time taken to transmit and receive the response. As simple as it gets.
Working of Ping:-
Ping technology was made on the concept of Sonar Transducer. A Sonar Transducer is a device made to sense the location of an object in the ocean. It transmits the pulse of sound and when it collides with an object it reflects the sound waves.
In the case of the ping command, it sends packets to the IP address you have instructed it to, and it will wait for the response. After receiving the response it will calculate the total time between sending the data and receiving its response and will tell you how many packets are dropped.
Ping command can be used for many different things, like if you want to check whether your computer can communicate with other devices such as a router or a switch within a LAN or over a WAN. It can also determine the delay in that conversation or the loss of data in that conversation.
Ping work on a protocol called ICMP, which stands for Internet Control Message protocol. This protocol assists Ping to send and receive echo messages from the host or target computer.
The whole loop works as first the ICMP sends a message request to the target computer and if that IP address is available, It sends a response to the host computer in the form of an ICMP message. This will help us to know the connectivity status and roundtrip timing.
How to use Ping?
In this article, we are going to explain the way of using Ping in Window’s command prompt and Powershell. Although, it can be used with the help of other command tools available in the MAC and Linux Operating systems. Just note the command and you will be good to go!
If you are just getting started with the Ping try writing Ping in the command line. You will see that there are different syntax available:-
You can use these syntaxes as well after diving in the world of Ping.
How to Ping a Website using Command Prompt?
Just be obedient to the following steps and you are golden.
Step1: Launch Command Prompt by either going to start menu and searching it out or launch Run(Windows+R) and then type “cmd”.
or Open the Run menu by pressing Windows Key + R.
Step2: Now, type ping along with your URL or IP address(that you want to ping to). For example, ping technicalustad.com(as shown below).
The response states that pinging to the website(technicalustad.com) is successful. As you can see the response to the request made was that in the first line the size of the packet is 32 bytes. Then in the next four lines, each packet response was recorded with its round trip time.
In the summary below the conversation, you can see how many packets were sent, how many of them are received and the number of packets dropped due to data transmission loss.
In this scenario, you can observe by looking at the window above that out of 4 packets, 0 packets were dropped and all the packets were received.
So, that was the way to ping a website using the command prompt.
How to Ping a Website using Powershell
Powershell is a more advanced version of Command Prompt or that’s how Microsoft is trying to pitch it. In my humble opinion, it is just a prettier version of the command prompt and that Microsoft has decorated for windows 10 users.
Pinging a website in PowerShell is as easy as it was in the command prompt. Just do the following steps:-
Step 1: Launch PowerShell by searching PowerShell out from the start menu. Although PowerShell allows the user to ping without being an administrator, in this example, I am going to work as an administrator.
Step 2: Type Ping with your URL name( ping www.technicalustad.com).
As you can see here that pinging “technicalustad.com” was successful. Now the descriptions are just like the command prompt. The reply was in 4 layers with the time of each reply mentioned.
After that, you can see that there are no packet drops and all the four sent packets were received with their maximum, minimum and the average time is recorded.
Like I said PowerShell is just another glamorous version of the command prompt.
How to continuously ping a website?
When we type the ping command, four packets of data are sent to the assigned IP address. But, what if you want to continuously Ping? For that, we use the option of “continuous pinging”. This method is also useful if you are looking to test connectivity between two computers in a LAN.
Do what prescribed and you will be able to continuously ping your website.
Step 1: Launch Command Prompt or PowerShell by going to the Start menu and searching it out. Or go to Run(Windows+R) and search it out from there. In the example, I went for PowerShell but the same commands will work in Command Prompt as well
Step 2: Now enter the command “ping -t “any URL or IP address”(ping -t technicalustad.com).
Now your computer will run the program in an endless loop and will continue pinging.
The echo replies will be dispatched to display on your computer every second. So, type “CTRL + C” to stop the ping
And next if you look at the overview of the conversation you can see that total packets sent is 33, which is obviously greater than what saw previously in the normal ping case.
And all the packets are received with 0% loss. Not only that the round trip times are very broadly explained as well.
This is how the ping command is used. Although the above example was performed on the Windows platform the same commands are applicable for all the platforms such as MAC or LINUX. Just the application will change like you can use the “terminal” in Apple’s MAC or the “command-line interface” in Linux.
How to Ping a Website using Third-Party Tools
If you are a webmaster and looking for a solution to monitor your website up status then you need a third-party tool that will do the monitoring for you in real-time so once your website goes down then you will immediately receive email notifications.
Now let’s explore some of the best online tools that will ping your website and notify you in case of any downtime.
UptimeRobot (Visit Here) is the best website monitoring service that you can use for free for 50 websites at the same time.
With UptimeRobot, you are able to do the Website monitoring, SSL Certificate monitoring, Port & Ping monitoring, and Cron job Monitoring.
UptimeRobot is easily integrated with services like SMS, Voice calls, Twitter, Slack, Telegram and Pushbullet, etc services.
2. SolarWinds Pingdom
Solarwinds Pingdom (Visit Here) is another powerful tool that you can use to monitor your website status. With Pingdom, you are able to monitor your website from the 100 locations worldwide.
You are also able to do Transaction monitoring such as user logins, searches, shopping cart checkouts, and more.
The third Tool that we have on our list is site24x7 (Visit Here), it will help you in Website Monitoring, Server Monitoring, Cloud Monitoring, Network Monitoring, Application performance monitoring and Real user monitoring.
How we are monitoring technicalustad.com?
We are not monitoring our website for any downtime, really? 🤔 yes you heard right we are not monitoring our and there is a reason behind this.
Our website is hosted on the Google Cloud premium network (Read our guide Kinsta Review 2020: The Best Managed WordPress Host?) and this domain is also registered with a Cloudflare and we are using the Cloudflare always online technology to make our website always up even it’s down from the Host. 🙂
If you are also using Cloudflare for your website, navigate to the Cloudflare dashboard and navigate to the Caching > Configuration and enable the “Always Online” option, that’s it.
if you are also using Cloudflare and want to monitor your website status then just go to “Apps” and Search for the “Upmon” app and install it.
You need to register with Upmon and after signup, just login here and click on the “Install on all Pages” option.
How to Ping a Website or View From Multiple Location
There is a situation where you are not sure a particular website is opening in other countries or no. All the above “How to Ping a Website” methods are for pinging from your PC or monitor your website but not to test the website or view from other locations.
let’s explore the two best methods to do so,
1. Use GeoPeeker
GeoPeeker is an online tool that can easily show you how a site appears to the rest of the world. Just navigate to geopeeker.com and enter your website. It will show you, your website view from locations like Singapore, Brazil, Virginia, California, and Australia.
2. Use GTmatrix Tool
GTmatrix is a website speed test tool but once you signup you are able to test your website from multiple locations.
What can Ping do?
Well, Ping command is like an all-rounder in the networking field. It performs dozens of tasks and in this section, we are going to discuss some of its tasks.
Here are some fascinating things you can do with the ping command:-
- Check your network: The tutorial that we have shown above on how to ping a website can be used to check your network and your network devices like adapter, router, etc.
- Check the IP address of a particular URL: If you want to know the IP-address of a particular URL, just ping that URL and you will be able to see the IP-address at the top of your ping reply.
- Check your router: If you are not able to ping a particular website and are in an aww that whether the problem is with the website or with your router. Then, use the ping command with your router’s IP. A successful response implies that your router is just fine and you need to have few words with your ISP.
This not all ping command can be used for various other things such as pinging the hostname for availability, increase/decrease interval between packets, Increasing/decreasing packet size, etc
- Ping is a command used to check the connection between two IP addresses.
- It works as when you type the ping command with a particular URL or IP address it will first send the message request to the particular IP address and then it will respond to its queries.
- Ping command is the same for all Command Applications.
- Syntax of the pinging a website is “ping URL/IP address” for example ping technicalustad.com).
- Ping work on a protocol called ICMP, which stands for Internet Control Message protocol.
- Ping response is a four-layer response of a 32-bit data packet.
- The response will depict how many packets of data are received and how many of them are dropped. Which will, therefore, help you in understanding your network status better.
- Continuous ping is often used to test a network between two computers in LAN.
- The syntax for continuous ping is “ping -t “any URL or IP address”(ping -t technicalustad.com).
- Continuous ping will create an endless loop if you want to end that loop of echo replies press “Windows + R”.
Ping is capable of doing many different tasks such Check your network, Check the IP address of a particular URL, Check your router, pinging the hostname for availability, increase/decrease interval between packets, Increasing/decreasing packet size, etc