Bryan Ward

Logo

About

All Posts

Recordings

Contact

Good bye telnet

2 December 2026

Microsoft has deprecated the telnet client application and it will be eventually removed from the Windows operating system.

image

I know a lot of sysadmins who use telnet to test connectivity to remote TCP ports. It’s a fine solution, as the telnet protocol is fairly minimal. Opening a telnet session to a TCP port proves that bidirectional communication is possible (by virtue of the TCP handshake). This is an extraordinarily useful test which can help to blame (or rule out) the network when troubleshooting an issue.

The telnet client is probably not installed on your Windows system by default. Installing it is (was) as simple as checking a box. (And then waiting an unnecessary amount of time as Windows finishes “Searching for required files”.)

image

Using telnet from a Command Prompt produces a basic TCP Handshake, and then drops you into the session in the terminal. Pressing Ctrl-] and typing quit <Enter> closes the TCP session.

But, if you don’t properly escape to the Telnet shell, whatever you type in the terminal gets sent to the remote host - even before you press :

image

This is less than ideal. Depending on the remote system, it may not handle spurious/unexpected data all too well. If it’s an OT device you’re testing against, that could even mean a risk of physical damage to equipment or a life safety issue! It’s this reason that I’ve never been a fan of using telnet for diagnostic purposes. (Depending on how you’ve configured your telnet client, it may send additional data even before you get dropped into the session. The telnet protocol can handle many things such as automatic login and terminal/screen size/feature negotiation. This protocol-level data may similarly be unexpected by the remote system.)

But, if you know how to speak the protocol the remote system is expecting, you can even interact with it directly! Watch!

image

Apparently my HTTP is a bit rusty.

So, what can we use to test bidirectional TCP reachability without telnet? On Windows PowerShell, there’s the Test-NetConnection command. This little tool can test ICMP PING, TCP session establishment, as well as override the local routing tables.

Test-NetConnection -ComputerName google.com -Port 80 Results in the most basic TCP Handshake and Session Close. No payload data is sent or received at all. Just a basic connection test.

image

image

If you’re a frequent user of telnet for diagnostic purposes, I suggest you start getting in the habit of using Test-NetConnection instead.


tags:

I certify that none of the text contained within the articles on this site has been generated or edited by any AI technology. I've been a fan of the em dash for many years and am known to use big words from time to time.
This page uses cookies — if that's a problem, then don't use the Internet.
Copyright © Bryan Ward