While the ping command confirms connectivity, it does not necessarily mean that all TCP ports on the remote host can be reached. It is possible for a network firewall to allow or block access to certain ports on a host.


To check if specific TCP ports are running on the remote host, you can use the telnet command to confirm if a port is online.

# telnet destination-ip destination-port

When trying to establish a telnet connection to TCP port 80, you see an output similar to:

# telnet 80Trying…Connected to

Escape character is ‘^]’.

In this sample output, you can see that you are connected to port 80 (http) on the server with IP address

If you choose a port number for a service that is not running on the host, you see an output similar to:

# telnet…

telnet: Unable to connect to remote host: Connection timed out

In this case, you can see that there is no response when you attempt to connect to port 81 on the server

Note: Telnet is an application that operates using the TCP protocol. UDP connectivity can not be tested using Telnet.

By Ravi Verma

Ravi Verma is currently employed with a Startup company based out from Bangalore, India. And is currently focusing on cloud centric technologies like Software defined infrastructure, Integration, Automation and Operations with on-premises data center and Cloud provider services like GCP and AWS.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s