Telnet - How can I use telnet to test a web or mail server?

Did you know that we also carry Integration Solutions?

Chipkin has integration solutions for almost every situation. We specialize in network protocol communications and have over 20+ years of experience. Click for more information:

https://cdn.chipkin.com/assets/uploads/2022/Apr/QS-3XX0-2xx0-1XX0-SQ-NB 500pxls_13-18-44-12.png


How can I use telnet to test a web or mail server?

Telnet applications are useful for testing remote services such as web services or smtp mail servers. You just need to telnet to the appropriate ip and port, and know how to issue commands for the relevant protocol such as HTTP or SMTP.

As an example, you can use telnet to request a web page from a remote server with just a couple of commands:

  • $ telnet example.com 80
  • GET /path/to/page.htm

Here's an example for telneting to google.com and requesting the index page:

[rain ~]$telnet google.com 80
    Trying 74.125.225.224...
    Connected to google.com.
    Escape character is '^]'.
    GET /
    HTTP/1.0 200 OK
    Date: Mon, 30 Sep 2013 02:21:47 GMT
    Expires: -1
    Cache-Control: private, max-age=0
    Content-Type: text/html; charset=ISO-8859-1
    
    --snip-remaining-output--
    
    Connection closed by foreign host.

Contact Us

Contact us via phone (+1 866-383-1657) or leave a detailed message below for sales, support, or any other needs

*Required Field
*Required Field
I'd like to receive the newsletter. *Check email for confirmation.
*Required Field
8:00am - 12:00pm 12:00pm - 5:00pm
Message Sent Successfully