![]() |
VOOZH | about |
The telnet command in Windows is a lightweight, built-in tool for basic network diagnostics. It lets you test connectivity to remote hosts and verify whether specific ports are open and responding.
Although modern tools like PowerShell's Test-NetConnectionNyConnection or curl have largely superseded it, telnet remains useful for quick checks especially when those alternatives aren't available.
Telnet (short for teletype network) is a client-server protocol that provides a command-line interface to remote systems over a network. It operates over TCP and defaults to port 23, but you can target any port. Key diagnostic uses include:
Security Note: Telnet transmits data in plaintext, including credentials. Use it only for testing, never for production logins. Prefer SSH for secure remote access.
Telnet is disabled by default on Windows 10, 11, and Server editions. Enable it via Windows Features:
Power Tip: Use pkgmgr or PowerShell for automation:
Enable-WindowsOptionalFeature -Online -FeatureName "TelnetClient"
There are several methods to identify network problems with Telnet. Here are a few such use cases:
1. Testing Open Ports: Use this command to see if a particular port is open on a remote server:
Command: telnet <hostname> <port>For example, to test if port 80 (HTTP) is open on a server with the IP address 192.168.1.1, type:
Command: telnet 192.168.1.1 802. Checking Connectivity to a Remote Server: You can use Telnet to check if a server is reachable by connecting to its default Telnet port (23):
Command: telnet <hostname>3. Testing SMTP Server Communication: To test connectivity with an SMTP (Simple Mail Transfer Protocol) server, utilize Telnet. This is very helpful for resolving problems with email delivery:
telnet <smtp-server> 25telnet mail.example.com 254. Diagnosing DNS Issues: Telnet may also be used to connect to port 53 on a DNS server and confirm DNS resolution:
telnet <dns-server> 531. Checking Web Server Availability: Use the following to see if a web server is reachable and taking connections on port 80:
telnet www.example.com 802. Examining Connectivity to the Remote Desktop: Port 3389 can be used to determine whether a remote desktop service is active on a server:
telnet <remote-server> 33893. Confirming Email Server Setup: Test the SMTP connection to make sure an email server is configured correctly:
telnet mail.example.com 25By using this, you may communicate with the server and make sure that demands for email delivery are being fulfilled.