Open a raw TCP socket in seconds to test services, read headers and debug simple protocols. 13.05.2026 | reading time: 3 min Telnet creates a raw TCP connection to a host and port so you can talk to services directly; it is quick and blunt. Use it to verify reachability, read plain-text protocol exchanges and poke servers when you need to see unfiltered traffic. Try an HTTP GET A concrete example: open port 80 and request the root document, then inspect the response headers and first lines of the body. ```bash $ telnet example.com 80 Trying 93.184.216.34... Connected to example.com. Escape character is '^]'. GET / HTTP/1.0 Host: example.com HTTP/1.0 200 OK Date: Mon, 01 Jan 2024 00:00:00 GMT Server: ECS (dcb/7F6A) Content-Type: text/html; charset=UTF-8 ... (body omitted) ``` Press Ctrl+] to reach the telnet prompt and type `quit` to disconnect. Beyond simple connects Telnet is not only for HTTP: use it to talk to SMTP servers, debug custom TCP services or test listener ports on firewalls; type Ctrl+] to escape, then use the telnet prompt for status and quit. Remember that telnet transmits everything unencrypted and telnetd should not be used for remote shells on production systems; prefer SSH for interactive shells and openssl s_client for TLS-wrapped services. When telnet is missing Many modern distributions omit the telnet client by default; install inetutils-telnet or busybox-extras, or reach for better tools that automate what telnet does manually. Scripts and automated checks often use netcat or specialized tools because they are easier to script and handle binary data without interactive quirks. Practical alternatives For scripted raw TCP use netcat, for encrypted TLS handshakes use openssl s_client, and for discovery or batch port checks use nmap; curl and wget remain the pragmatic choice for full HTTP interactions when you need more than raw bytes. Wrap-up and next steps Telnet is a simple diagnostic hammer: it exposes raw TCP quickly and teaches you how protocols look on the wire. Learn more about secure alternatives and broader Linux networking to deepen troubleshooting skills, and consider studying for CompTIA Linux+ or LPIC-1 with intensive exam preparation at bitsandbytes.academy. Join Bits & Bytes Academy First class LINUX exam preparation. network utilities security troubleshooting