Categories
HTTP Concepts Internet Technology Web Trends

How to use Telnet

TL;DR; Telnet is a network protocol that allows a user on one computer to log into another computer that is part of the same network.

Telnet is a text based application, often used at the command line of an operating system. Most importantly it uses the Telnet protocol (which is part of the TCP/IP protocol suite) to connect to a remote computer over a network. Keep in mind, telnet is an external command, which is available in certain microsoft operating systems as telent.exe. Running the telnet application requires different set of commands on different operating systems.

telnet
how telnet works

Example:

prompt$ telnet kumar.swatantra.info 23

Usage:

# telnet [host [port]]
telnet servername-or-ip [port-number]

Ports are specific gateways for Internet traffic to travel over. It’s similar to a large hallway with many doors leading outside. If a door is locked, you cannot access the outside world.

Telnet syntax

telnet [host [port]]

host Specifies the hostname or IP address of the remote computer.
port Specifies the port number or service name.

Commands available through the actual telnet program:

close Close current connection.
display Display operating parameters.
open Connect to a site.
quit Exit telnet.
set Set options (Type ‘set ?’ for a list).

NTLM Turn ON NTLM Authentication.
LOCAL_ECHO Turn ON LOCAL_ECHO.
TERM x (where x is ANSI, VT100, VT52, or VTNT)
CRLF Send both CR and LF
status Print status information.
unset Unset options (Type ‘unset ?’ for a list).

NTLM Turn OFF NTLM Authentication.
LOCAL_ECHO Turn OFF LOCAL_ECHO.
CRLF Send only CR (no LF is sent)
?/help Print help information.

Linux

  1. Open the your terminal application
  2. At the shell prompt, type: telnet exampleserver.com 23
  3. On a normal Unix machine the port is just the second argument on the command line.

Windows

  1. Click the start button
  2. Choose “run” from the start menu
  3. Type “cmd.exe” in to the run box
  4. At the cmd prompt, type: telnet exampleserver.com 23

Mac OS X

  1. Open the Applications menu or folder
  2. Select the Utilities folder
  3. Start the Terminal.app application
  4. At the shell prompt, type: telnet exampleserver.com 23
'Coz sharing is caring

By Swatantra Kumar

Swatantra is an engineering leader with a successful record in building, nurturing, managing, and leading a multi-disciplinary, diverse, and distributed team of engineers and managers developing and delivering solutions. Professionally, he oversees solution design-development-delivery, cloud transition, IT strategies, technical and organizational leadership, TOM, IT governance, digital transformation, Innovation, stakeholder management, management consulting, and technology vision & strategy. When he's not working, he enjoys reading about and working with new technologies, and trying to get his friends to make the move to new web trends. He has written, co-written, and published many articles in international journals, on various domains/topics including Open Source, Networks, Low-Code, Mobile Technologies, and Business Intelligence. He made a proposal for an information management system at the University level during his graduation days.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.