Telnet is a network protocol that lets you connect to remote devices and servers using a command-line interface. While it’s an older tool, it’s still useful for troubleshooting network services, configuring routers or switches, and testing open ports. By default, Windows 10 doesn’t have the Telnet client installed, but you can enable it in a couple of minutes using the Control Panel or a quick command. This guide walks you through both methods.
What You’ll Need
- A Windows 10 PC with administrator privileges (you’ll need to confirm a UAC prompt).
- An internet connection or Windows installation media (the feature files may be downloaded from Windows Update).
- If you plan to connect to a remote server, you’ll need its hostname or IP address and the port number (default is 23).
Step-by-Step
Method 1: Using Control Panel (GUI)
- Press Windows + R to open the Run dialog, type
control, and press Enter. This opens the Control Panel. - Click on Programs (or Programs and Features if you’re in Category view).
- Under “Programs and Features,” click Turn Windows features on or off in the left sidebar. A new window will pop up.
- Scroll down the list and find Telnet Client. Check the box next to it.
- Click OK. Windows will apply the changes. It may take a minute and might ask you to restart your PC—do so if prompted.
- Once done, open Command Prompt (press Windows + R, type
cmd, and press Enter) and typetelnetto verify it’s working.
Method 2: Using Command Prompt (Faster)
- Open Command Prompt as Administrator. Press Windows + X and select Command Prompt (Admin) or Windows PowerShell (Admin).
- Type the following command and press Enter:
dism /online /enable-feature /featurename:TelnetClient - Wait for the process to complete (usually under a minute). You’ll see a message saying “The operation completed successfully.”
- Close and reopen Command Prompt (as a regular user) and type
telnetto confirm.
Common Mistakes
- Forgetting to run as administrator: The DISM command and the Control Panel feature toggle both require admin rights. If you get an “Access denied” error, close and reopen the prompt with admin privileges.
- Typing the command wrong: The DISM command is case-insensitive, but make sure there’s a space before and after
/onlineand/enable-feature. A common typo isTelnetClientspelled asTelnet Clientwith a space—the feature name has no space. - Looking for the telnet.exe file: After enabling, the executable is located at
C:\Windows\System32\telnet.exe. If you can’t find it, you might have enabled the wrong feature (e.g., Telnet Server instead of Client). - Not restarting when asked: Sometimes Windows requires a restart to finalize the feature installation. If telnet doesn’t work immediately, restart your PC.
Tips
- Use telnet to test port connectivity: For example,
telnet google.com 80will attempt to connect to Google’s web server on port 80. If the screen goes blank or shows a message, the port is open. If it says “Could not open connection,” the port is blocked or unreachable. - Exit telnet properly: To quit a telnet session, press Ctrl + ] to get to the telnet prompt, then type
quitand press Enter. Alternatively, close the Command Prompt window. - Secure alternatives: Telnet sends all data, including passwords, in plain text. For sensitive operations, use SSH (if available) or PowerShell remoting instead.
- Check the firewall: If you’re connecting to a remote device, ensure the remote device’s firewall allows incoming connections on port 23. For outgoing connections, Windows Firewall usually doesn’t block telnet by default, but some third-party firewalls might.
Troubleshooting
- “Telnet is not recognized as an internal or external command”: This means the feature isn’t enabled. Re-check the steps above. If you used the DISM command, confirm it ran without errors. If you used Control Panel, make sure the checkbox is checked and you clicked OK.
- DISM error 0x800f081f: This usually means Windows can’t find the feature files. Try running Windows Update first, then retry. Alternatively, use the Control Panel method, which often downloads the files automatically.
- Telnet opens but then closes immediately: This can happen if you’re using telnet without arguments. Type
telnetalone—it should show a prompt likeMicrosoft Telnet>. If it closes, try running Command Prompt as administrator and then typetelnetagain. - Connection fails with “Could not open connection to the host, on port 23”: This means the remote host is unreachable or the port is closed. Double-check the IP/hostname and port. Try pinging the host first. Also, ensure the remote service is actually listening on port 23 (use a port scanner or the remote device’s documentation).
Frequently Asked Questions
Is Telnet enabled by default in Windows 10?
No, the Telnet client is disabled by default. You have to manually enable it via Control Panel or DISM as shown above.
What’s the difference between Telnet Client and Telnet Server?
Telnet Client is the software that lets you connect to remote systems. Telnet Server is the service that allows others to connect to your PC. For most troubleshooting, you only need the client.
Can I use Telnet to send emails?
Yes, you can test SMTP (port 25) or POP3 (port 110) servers by manually typing commands. For example, telnet smtp.gmail.com 25 (though Gmail requires SSL, so it won’t work directly). It’s a useful way to test if a mail server is responding.
Is Telnet safe to use?
Telnet itself is not secure because it transmits data, including passwords, in plain text. Use it only on trusted local networks or for testing. For any real-world remote administration, use SSH (port 22) or a VPN.
How do I uninstall Telnet Client?
Follow the same steps as enabling, but uncheck the box in Control Panel, or use the DISM command with /disable-feature instead of /enable-feature.
Why does telnet say “Connection refused”?
This usually means the remote server is reachable but the port is closed or the service isn’t running. Check the service status on the remote machine and ensure the correct port number is used.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Gmail Gemini Privacy: Data Access & Limit Settings
- Fix Outlook Inbox Corruption with DISM in Windows
- How to Set Up Apple Pay on iPhone
- How to Choose a Refurbished iPhone With Years of Support
- Voice Dictation in Google Docs: How to Use It
- Turn Off Message Notifications on Mac