I am trying to ping one remote server. I am surprised that ping works but not telnet.

ping 174.25.366.25 --connection is successful.

where as

telnet 174.25.366.25 --connection timed out

I also want to check for connection on specific port

telnet 174.25.366.25 8090  ---connection timed out

Why is that difference and what does it convey

  • You should really think about switching to SSH. Telnet is completely insecure. – gronostaj Jun 13 '13 at 7:39

Well from what you say you got a port problem

  1. your ISP might block the port
  2. or you didn't forward the port
  • Thank you for the response. I am still not getting why ping works but not telnet. Can you help with that – Patan Jun 13 '13 at 7:21
  • 1
    @Patan because ping is using ICMP protocol and Telnet is using TCP/IP, typically port 23. Your server's IP is reachable, but it's not receiving port 23 connections because this port is either blocked or not forwarded. – gronostaj Jun 13 '13 at 7:38
  • @gronostaj. Here I am using port 8090. Even then it is getting refused. So can I assume that the port 8090 is blocked or not forwarded. – Patan Jun 13 '13 at 7:40
  • 1
    @Patan one more thing that comes to my mind is a firewall blocking that port. – gronostaj Jun 13 '13 at 7:42
  • here is a link that might be useful to for testing ports yougetsignal.com/tools/open-ports – poqdavid Jun 14 '13 at 13:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.