Enable telnet on Windows
The telnet tool uses the telnet protocol to communicate with another host. It is commonly used to test connectivity between network services. On Linux, the tool is installed by default, whereas on Windows, the telnet feature is disabled by default. This topic describes how to enable the telnet feature on Windows 10 and Windows Server.
Procedure
Enable the feature
To enable the telnet feature, follow the steps for your operating system.
Windows 10
-
Click Start, type Control Panel, and press
Enterto open the Control Panel page. -
Click Programs > Programs and Features. Then, click Turn Windows features on or off, select Telnet Client, and click OK.
Windows Server
-
Connect to the Windows instance. See Connect to a Windows instance by using Workbench.
-
Click Start, type Control Panel, and press
Enterto open the Control Panel page. -
Click Programs>Programs and Features, and then click Turn Windows features on or off.
-
In the Add Roles and Features Wizard dialog box that opens, click Next. On the Features tab, select Telnet Client and then click Next. On the Confirmation tab, click Install to enable the feature.
Verify the result
-
Click Start, type cmd, and press
Enterto open the Command Prompt. -
Run the following command to verify that the
telnetcommand works.telnet /?Output similar to the following indicates that the
telnetcommand is working.C:\Users\Administrator> telnet /? telnet [-a][-e escape char][-f log file][-l user][-t term][host [port]] -a Attempt automatic logon. Same as -l option except uses the currently logged on user's name. -e Escape character to enter telnet client prompt. -f File name for client side logging. -l Specifies the user name to log in with on the remote system. Requires that the remote system supports the TELNET ENVIRON option. -t Specifies terminal type. Supported terminal types are only: vt100, vt52, ansi, and vtnt. host Specifies the hostname or IP address of the remote computer to connect to. port Specifies a port number or service name.
Usage example
Run the following telnet command to test service or network connectivity. Replace <ip> and <port> with the target IP address and port number.
telnet <ip> <port>
A continuously blinking cursor indicates a successful connection. Press CTRL+] to exit.
References
-
To troubleshoot network connectivity issues, see Troubleshoot public IP ping failures on an ECS instance and Troubleshoot inaccessible ports on a pingable ECS instance.
-
To test a network link for packet loss or disconnections, see Use MTR to analyze network links.