Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

TELNET command is a built-in command in Windows operating systems. This command helps to diagnose basic connectivity to any service like Oracle Database service, Web application service or a SQL Server service. The TELNET command is a part of Telnet Client Windows feature which is not present by default remain unavailable on freshly installed OS, hence need to enable before using this. The following steps will guide to work with TELNET command and the steps are mostly relevant for Windows 7, Windows Server 2008R2 and later Operating Systems.

  1. Enable Telnet (client

    Open a command prompt (cmd).

     
  2. Type cmd at the Windows Start Menu search box or type cmd in RUN box. Then press enter. Command prompt window opens (a black console).
  3. Type Telnet


  4. Type TELNET -?. If the command results an output on TELNET command help, that confirms the presence of Telnet Client on the system. If you receives an error saying “'Telnet' is not recognized as an internal or external command, operable program or batch file.“ that means Telnet Client is not yet enabled. Enable Telnet Clienton the system. 

  5. Once the availability of TELNETcommand is determined, then proceed in the test process. Type TELNETcommand in following format.


    TELNET HOSTNAME PORT


    Code Block
    TELNET <Hostname or IP> <Port>


    Example:

    Code Block
    TELNET GINESYS-SERVER 1521
  6. After executing the command if the command prompt turns into a blank screen with one blinking dash, that denotes successful accessibility of the service. If the the desired service is somehow unavailable the command will fail and will end with an error; Connecting To HOST...Could not open connection to the host, on port xxxx: Connect failed


How to enable TELNET client

Using Command-Line (Server OS or Windows 10)

  1. Open a command prompt (Run as administrator).

  2. Run the following command.

    dism.exe
    Code Block
    dism /online /Enable-Feature /FeatureName:
    Telnet-Client
    TelnetClient

Using OS Menu

Alternatively, you can enable the feature Telnet Client from 'Server Manager' for server OS or 'Turn Windows Feature on or off' menu in client OS.

For all the way to enable Telnet Client refer How To: Enable Telnet in Windows