Enable telnet on Windows

Updated at:

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

  1. Click Start, type Control Panel, and press Enter to open the Control Panel page.

  2. Click Programs > Programs and Features. Then, click Turn Windows features on or off, select Telnet Client, and click OK.

Windows Server

  1. Connect to the Windows instance. See Connect to a Windows instance by using Workbench.

  2. Click Start, type Control Panel, and press Enter to open the Control Panel page.

  3. Click Programs>Programs and Features, and then click Turn Windows features on or off.

  4. 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

  1. Click Start, type cmd, and press Enter to open the Command Prompt.

  2. Run the following command to verify that the telnet command works.

    telnet /?

    Output similar to the following indicates that the telnet command 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