How to connect to another machine via Telnet?

Rohan Pande 375 Reputation points
2024-05-21T10:49:51.95+00:00

Hi,

I am trying to connect to another machine (Windows OS) from a machine (Windows OS) via the Telnet protocol. But I fail in connecting the machine.

My aim is that after connecting the machine, I should be able to run an application on the destination machine from source machine.

Error:
Microsoft Telnet> open 10.20.16.222

Connecting To 10.20.16.222...Could not open connection to the host, on port 23: Connect failed

I have tried downloading the telnet from command line and also checked in the Windows Features whether "Telnet Client" is enabled or not. But no luck. Can somebody help?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,975 questions
0 comments No comments
{count} votes

Accepted answer
  1. Marcin Policht 15,455 Reputation points MVP
    2024-05-21T11:43:31.29+00:00

    The target server would need to listen on TCP port 23.

    You should not be using Telnet for remote management - it's not secure.

    Use PowerShell Remoting instead. More at https://learn.microsoft.com/en-us/powershell/scripting/learn/ps101/08-powershell-remoting?view=powershell-7.4


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin


0 additional answers

Sort by: Most helpful