Frequent Question: How Do I Check If a Linux Host Is Reachable?
Contents

A very simple and quick way is to use the ping command. (or cnn.com or any other host) and see if you get any output back. This assumes that hostnames can be resolved (ie dns is working). If not, you can hopefully supply a valid IP address/number of a remote system and see if it can be reached.

How do I know if a host is reachable?

Ping is a network utility that is used to test if a host is reachable over a network or over the Internet by using the Internet Control Message Protocol “ICMP”. When you initiate an ICMP request will be sent from a source to a destination host.

Can ping no route to host?

You definitely has firewall issue between you and remote host you trying to access. You can get ping response from remote host because ICMP traffic are allowed by firewall but TCP traffic has some blocking based on rules on firewall. … Best way is to contact remote host admin/user to be sure that your IP is allowed.

Elena Rostova

Elena Rostova

Lead Health, Wellness & Medical Journalist

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.

Share this article
Twitter Facebook Pinterest