Networking

telnet

User interface to the TELNET protocol.

#networking #debug #legacy

Connect

Connect to a host on a specific port.

telnet [host] [port]

Test HTTP

Manually send an HTTP request.

  1. Connect: telnet [host] 80
  2. Type: GET / HTTP/1.1
  3. Type: Host: [host]
  4. Press Enter twice.

Test SMTP

Manually send an email.

  1. Connect: telnet [host] 25
  2. Type: EHLO [host]
  3. Type: MAIL FROM: <sender@[host]>
  4. Type: RCPT TO: <recipient@[host]>
  5. Type: DATA
  6. Type message body.
  7. Type . on a new line to send.

Exit

To exit the telnet prompt.

Press Ctrl + ] then type quit.

telnet> quit