Skip to content

Network Problems? Use PiNG to Debug

Learn how to use PiNG to debug network problems for whenever you are having internet issues.

Toul
2 min read
Network Problems? Use PiNG to Debug

You're at home and notice that the internet seems to be out whenever you try to connect to a website on your laptop.

You have already tried turning the wifi router on and off again already, but with no luck.

Now it is time to check other possible causes.

Potential Causes

  • Local network connection
  • Internet Service Provider (ISP)
  • Local router

What to do?

Open a terminal or command prompt if you're on windows and use PiNg to check if any website is reachable, www.google.com is a common choice.

timetosolitude % ping www.google.com

PING www.google.com (172.211.7.123): 56 data bytes
64 bytes from 172.211.7.123: icmp_seq=0 ttl=54 time=15.077 ms
64 bytes from 172.211.7.123: icmp_seq=1 ttl=54 time=18.043 ms
64 bytes from 172.211.7.123: icmp_seq=2 ttl=54 time=19.126 ms
64 bytes from 172.211.7.123: icmp_seq=3 ttl=54 time=19.583 ms
64 bytes from 172.211.7.123: icmp_seq=4 ttl=54 time=22.643 ms
64 bytes from 172.211.7.123: icmp_seq=5 ttl=54 time=17.083 ms
64 bytes from 172.211.7.123: icmp_seq=6 ttl=54 time=16.719 ms
64 bytes from 172.211.7.123: icmp_seq=7 ttl=54 time=22.164 ms
64 bytes from 172.211.7.123: icmp_seq=8 ttl=54 time=19.720 ms
64 bytes from 172.211.7.123: icmp_seq=9 ttl=54 time=18.478 ms
64 bytes from 172.211.7.123: icmp_seq=10 ttl=54 time=15.417 ms
64 bytes from 172.211.7.123: icmp_seq=11 ttl=54 time=16.624 ms
64 bytes from 172.211.7.123: icmp_seq=12 ttl=54 time=18.766 ms
--- www.google.com ping statistics ---
13 packets transmitted, 13 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 15.077/18.434/22.643/2.218 ms

If you didn't see something like above then chances are you received one of the following:

Error Messages and Meaning

No reply from www.google.com
  • The destination routes are available but that there is a problem with the destination itself
  • The server(s) are down at the website you're trying to visit
  • Need to wait for them to be 'alive' again
www.google.com is unreachable
  • Indicates that your host doesn't know how to get to the destination, so that means either that the routing information to reach another subnetwork is not available or that the device on the same network is down
  • Either the subnetwork is inaccessible due to IP restriction or the device on the network is down
  • Check if the device by using traceroute
ICMP host unreachable from gateway
  • Your host can transmit to the target address via a gateway, but the gateway cannot forward the packet properly because a route or gateway is misconfigured at your ISP or geolocation
  • Call your ISP provider and ask them what the deal is
Request timed out
  • The reply took to long from the destination server
  • Probably a firewall blocking traffic from your IP address
  • Meaning you don't have access to that site
DevOpsTech

Toul

I'm DevOps Engineer by Day and an Indie Hacker by night at ResuCan.com. I like to share what I'm learning in both my professional work and my Indie Hacker projects. Find me @_toul_ on twitter.