ping vs telnet

what is the difference between the two and when you do use which?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ping: check connection (knock on the door of remote server).
Telnet: gives access to remote system if it is running telnet daemon.
But however, if you want to check you can reach eg a webserver, you can:
telnet 80
if your screen turns blank, you can reach host on port 80 ...
There's a lot more to do with telnet, but think you get the basics with this ...
So: test if you can reach a host: ping
Check service: telnet

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Kerem ERSOYPresidentCommented:

Ping is an ICMP protocol. Basically any system with TCP/IP could respond to ICMP calls if theyy were not blocked by a firewall or similar filtering mechanism.

Telnet is a remote terminal server application. It must be enabled through system configuration and the server must be up for it to respond.

Ping command sends an ICMP request for reply to a computer and the computers returns the request (ping reply) this is displayed by the ping command along with some statistical information such as how long it did take for a packet to respond. While it is a helpful tool to diagnose problems in intranet it is blocked by most firewalls for security purposes.

Telnet on the other hand a remote access server in that it asks the connecting user authentication data and shell access is granted if the user has a valid account on the target system. UNIX systems and most smart network devices support telnet. But telnet is a very old protocol and it sends usernames and passwords over network in clear text format so it is open to eavesdropping and considered very unsecure.

Nowadays it comes disabled by default for many Unix systems. Most system administrators use SSH (Secure Shell) instead of Telnet. One of the main advantages of SSH over Telnet is all the communication is encrypted and sensitive user data travels encrypted over internet so it is not possible to extract these credentials easily.

Both ping and telnet could be used for diagnosing network problems. Ping simply gets a response and it is what it can do. While it is possible to monitor the output from a given port using telnet.

ping used for testing the connectivity between two devices..
telnet used to login to another device and you can manage it by commands line
anushahannaAuthor Commented:
wow.. very helpful answer. Thanks.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.