Share via

How to connect to another machine via Telnet?

Rohan Pande 445 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?

Community Center | Not monitored
0 comments No comments

Answer accepted by question author
  1. Marcin Policht 85,430 Reputation points MVP Volunteer Moderator
    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

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.