
ping Commands in Linux with Examples ping “localhost” to Check Local Network time=7.68 ms: The time it took a packet to reach the destination and come back to the source. It represents the number of network hops a packet can take before a router discards it.Ĥ. ttl=52: The Time to Live value from 1 to 255. Increases by one for every subsequent echo request.ģ. icmp_seq=1: The sequence number of each ICMP packet. Note that the IP address may be different for a website depending on your geographical location.Ģ. from: The destination and its IP address. After every session, there are a few lines with ping statistics.ġ. The terminal keeps printing the responses until interrupted. The output for the ping command contains the amount of time it takes for every packet to reach its destination and return. If the connection is established, you receive an echo reply for every request. When you try to “ping” a remote host, your machine starts sending ICMP echo requests and waits for a response. Analyze if there are network issues, such as dropped packages or high latency.It also helps with troubleshooting various connectivity issues. With this command, you can test if a server is up and running. The Linux ping command is a simple utility used to check whether a network is available and if a host is reachable. A user with the necessary permissions to run the commands.Published under Azure, MainArticle on 13 December, 2019. This is a tiny tool that you must know if you want to check if your architecture is well configured. Here we've seen how you can ping an Azure App Service inside the Azure Portal. There are also some flags that can be set:

That's the way to avoid ICMP packets! Just use TCP! If you wanna have more info about this command, you can simply type tcpping.įirst of all, it explains what it is: Opens a TCP socket to a target host:port and returns whether the initial handshake was successful and a connection was established.

If you try to ping myapi from Azure, you won't receive a Request time out, but a different error:Ĭonnected to :80, time taken: 171msĬonnected to :80, time taken: 109msĬomplete: 4/4 successful attempts ( 100% ). You will find both a Console and an external tool called Advanced Tools: you can use both, but here I'm using the Console tool: Azure Portal allows you to use multiple tools to interact and analyze what's going on on your App: just open your resource and head to Development Tools So what? TCPPing - the solution for youįirst of all, you should try to ping the service within the Azure Portal, so that you are sure you're running the commands in the cloud environment. Of course, you can't open a browser inside the Azure portal. Now you want to check if the networking between the two systems works well and check if everything is well configured. Let's say that you have a website,, that must communicate with an API hosted at. In fact, if you try it from your system, you will receive Request time out.īut at least you can try to reach it using a browser! A simple use case Unfortunately ICMP presents risks and problems for our underlying network infrastructure.

The problem comes when you want to ping a service hosted on Azure: in order to avoid DDoS attacks, the Azure team decided to block ICMP packets. Just as a reminder, ICMP ( Internet Control Message Protocol) is a network protocol that is at the same level as TCP and UDP on the networking stack, but it is typically not used for exchanging data between endpoints but only for sharing errors or information. More in detail, ping sends an ICMP echo request to a specified interface and waits for a reply. PSSS! Remember not to include the protocol! ICMP Minimum = 15ms, Maximum = 20ms, Average = 17ms Packets: Sent = 4, Received = 4, Lost = 0 ( 0% loss ),Īpproximate round trip times in milli-seconds:
