telnet not working

Erik Vanheusden 1 Reputation point
2021-12-13T22:35:56.917+00:00

I run Windows Server 2019. I want to use and test telnet between server 2019 and workstation 10.
I installed telnet on the server.
I installed telnet on the workstation.
I enabled in both server and workstation port 23 (I created inbound and outbund rules allowing TCP port 23).
I start telnet from CMD?
Microsoft Telnet> o localhost 23
Connecting To localhost...Could not open connection to the host, on port 23: Connect failed
I don't see the telnet service running in "services" on both workstation and server.

When i run this powershell command, i get this message:
PS C:\Windows\system32> Test-NetConnection -Computer localhost -Port 23
WARNING: TCP connect to (::1 : 23) failed
WARNING: TCP connect to (127.0.0.1 : 23) failed
ComputerName : localhost
RemoteAddress : ::1
RemotePort : 23
InterfaceAlias : Loopback Pseudo-Interface 1
SourceAddress : ::1
PingSucceeded : True
PingReplyDetails (RTT) : 0 ms
TcpTestSucceeded : False

Can someone help me please?
Kind regards
Erik Vanheusden

Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MotoX80 36,291 Reputation points
    2021-12-13T23:06:35.92+00:00

    According to this site, Microsoft has removed the Telnet Server feature and you would need to use a 3rd party tool.

    https://www.dz-techs.com/en/enable-telnet-server-in-windows-10

    Why do you want to use Telnet? OpenSSH is a more secure and both the client and server can be installed as a feature.

    https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse

    Or you could use Powershell.

    https://learn.microsoft.com/en-us/powershell/scripting/learn/remoting/running-remote-commands?view=powershell-5.1

    0 comments No comments

Your answer

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