text
stringlengths
0
4.23k
Specifies the computer name or IP address.
[<port>]
Specifies the TCP port that the telnet server is listening on. The default is TCP port 23.
<hostname>
[<port>]
Examples
To connect to a telnet server at telnet.microsoft.com, type:
o telnet.microsoft.com
telnet: quit
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012
Exits telnet.
Syntax
q[uit]
Examples
To exit telnet, type:
q
telnet: send
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012
Sends telnet commands to the telnet server.
Syntax
sen {ao | ayt | brk | esc | ip | synch | <string>} [?]
Parameters
Parameter
Description
ao
Sends the telnet command Abort Output.
ayt
Sends the telnet command Are You There?
brk
Sends the telnet command brk.
esc
Sends the current telnet escape character.
ip
Sends the telnet command Interrupt Process.
synch
Sends the telnet command synch.
<string>
Sends whatever string you type to the telnet server.
?
Displays help associated with this command.
<string>
Example
To send the Are you there? command to the telnet server, type:
sen ayt
telnet: set
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012
Sets options. You can use the telnet unset command to turn off an option that was previously set.
Syntax
set [bsasdel] [crlf] [delasbs] [escape <char>] [localecho] [logfile <filename>] [logging] [mode {console | stream}] [ntlm] [term {ansi | vt100 | vt52 | vtnt}] [?]
Parameters
Parameter
Description
bsasdel
Sends backspace as a delete.
crlf
Sends CR & LF (0x0D, 0x 0A) when the Enter key is pressed. Known as New line mode.
delasbs
Sends delete as a backspace.