Telnet — \windows\system32\telnet.exe


Create an interactive, text-based terminal session on a remote computer.

To Open

Command Prompt telnet


telnet [-a] [-e esc] [-f file] [-l user] [-t term] [host] 


Telnet is used to connect to a remote computer. A Telnet session works very much like a command prompt window, except that commands entered are executed on the remote machine. What you do in Telnet depends on the platform of the remote machine; for example, if connecting to a Unix host, you’ll get a standard terminal window. If you connect to a Windows host, you’ll get a DOS command-prompt window.

The following options can be used with Telnet:


The name or IP address of the remote computer. If you omit host, Telnet will start with a standard Microsoft Telnet> prompt, at which point you can type any of the commands listed below (such as open).


Specifies a port number to use for the connection; if omitted, the default Telnet port (23) is used.

-l user

Specifies the username with which to log in on the remote system. If omitted, you’ll be prompted to enter a username at the remote system’s login. The -l option only works if the remote system provides support for the Telnet ENVIRON option.


Attempts an automatic logon using the username and password of the currently logged-on user.

-e esc_character

Defines the escape character for the Telnet session; by default, escape is set to Ctrl-]. Type the escape character during a Telnet session to temporarily ...

Get Windows XP in a Nutshell now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.