telnet - Windows user interface to the Telnet protocol


telnet [-a] [-e escapeChar] [-f logfile] 
	 [-l user] [-t term] [host [port]]
telnet [-h]


The telnet(1w) Windows command-line utility is used to communicate with a remote computer using the Telnet protocol. The host argument specifies the name or Internet Protocol (IP) address of the computer to connect to, and port specifies the port number to be used (by default, 23). If telnet is run without the host argument, it enters command mode, indicated by its prompt (telnet). In this mode, it accepts and runs the Telnet commands listed later in this topic. To enter command mode while connected to a remote computer, type the escape-key sequence (by default, CTRL+]).

The telnet command accepts the following options:

-e escapeChar
The character used to enter the Telnet command prompt.
-f logfile
Specifies the name of the file to which the Telnet log is written for this session. If you do not specify the path of the file, it is created in your current directory.
-l user
The user name to use in logging onto a remote system. The remote system must support the ENVIRON option.
-t term
The type of terminal to use for the connection. Supported terminal types are VT100, VT52, ANSI, and VTNT.
Attempts automatic log on. Same as the -l option, except that the current user's name is used to log on.
Displays Help information.

Telnet commands

The following commands can be used when telnet is in command mode. The portion of the command name outside the square brackets ([]) is the shortest required form of the command.

Closes the current connection.
Displays operating parameters.
o[pen] host [port]
Connects to host on the specified port (port 23 by default). The host argument can be the name or IP address of the remote computer.
Quits Telnet.
set option
Sets one of the following options:
Backspace will be sent as delete.
codeset option
Available only when the user locale is set to Japanese. Set the current code set to option, which can be one of the following:
  • Shift JIS
  • Japanese EUC
  • JIS Kanji
  • JIS Kanji (78)
  • DEC Kanji
  • NEC Kanji
The same code set should be set on the remote computer. By default, Telnet Client uses a raster font. Before accessing a remote computer using one of these code sets, you must configure Telnet Client to use a TrueType font to ensure that characters will display properly. For more information, see Configure Telnet Client to use a TrueType font.
New-line mode; causes the RETURN key to send 0x0D, 0x0A.
Delete will be sent as backspace.
escape character
The escape character to enter Telnet client prompt.
Turns on localecho.
logfile name
The name of the client log file.
Turns on logging for this session.
mode {console | stream}
The mode of operation.
Turns on NTLM authentication.
term {ansi | vt100 | vt52 | vtnt}
The type of terminal you want telnet to emulate.
sen[d] argument
Sends a command or string to the server. If argument is a recognized command, it is sent as such; otherwise, it is sent as a string. The following commands are recognized:
Abort output command
"Are you there?"command
Sends the brk (break) command.
Current escape character
Interrupt process command
Telnet synchronization operation
Displays status information.
u[nset] option
Turns off an option previously set using the set command.
Displays Help information.