MS-DOS and Windows command line telnet command

Updated: 06/07/2019 by Computer Hope
telnet command

The telnet command enables a user to telnet to another computer from the command prompt. Additional information about with using telnet from any version of Windows may be found on our telnet help page.

Tip

Unless there are no other options, we suggest not using Telnet for security reasons. Consider SSH as an alternative.

Availability

Telnet is an external command that is available for the following Microsoft operating systems as telnet.exe.

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 Closes the current connection.
display Displays operating parameters.
open Connects 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.

Examples

telnet myhost.com

Telnet to the computer myhost.com

Additional information

  • Additional information and help with telnet can also be found on our telnet help page.
  • See our telnet definition for further information on this command.