Port 23 (Telnet)
TCPTelnet Remote Login — Telnet listens on port 23 by default.
What is Port 23?
Port 23 is the default port for Telnet, one of the earliest remote access protocols on the internet. Telnet provides a bidirectional text-based communication facility, allowing users to interact with remote systems as if they were directly connected.
Developed in 1969 and standardized in RFC 854, Telnet was the primary method for remote system administration for decades. The protocol operates over TCP and provides a simple command-line interface to remote hosts.
Telnet transmits all data, including usernames and passwords, in plain text without encryption. This critical security flaw makes it vulnerable to packet sniffing and credential theft. SSH (port 22) has almost entirely replaced Telnet for remote access. Today, Telnet is primarily used for debugging network services, accessing legacy equipment, and network device management on isolated networks.
Port 23 Security
Telnet on port 23 should be secured with appropriate access controls and monitoring. Ensure the service is only accessible from trusted networks by configuring firewall rules to restrict access. If the protocol supports encryption, enable TLS/SSL to protect data in transit.
Regularly update Telnet to the latest version to patch known vulnerabilities. Monitor port 23 for unauthorized access attempts and implement rate limiting where possible. Follow the principle of least privilege when configuring access permissions.
How to Check Port 23
To check if port 23 is open on a remote host, use nmap: 'nmap -p 23 hostname'. For a quick TCP connection test, use: 'telnet hostname 23' or 'nc -zv hostname 23'. On Windows PowerShell, use: 'Test-NetConnection -ComputerName hostname -Port 23'.
To check if port 23 is listening on your local machine, use: 'netstat -tlnp | grep 23' on Linux, or 'ss -tlnp | grep 23'. On Windows, use: 'netstat -an | findstr 23'. For a comprehensive scan, use: 'nmap -sV -p 23 hostname' to detect the service version running on the port.
Related Ports
Frequently Asked Questions
What is port 23 used for?
Port 23 is the default port for Telnet Remote Login (Telnet). It is used for telnet communication using the TCP protocol.
Is port 23 TCP or UDP?
Port 23 uses TCP. TCP is used because telnet requires reliable, ordered data delivery.
Should port 23 be open?
Port 23 should only be open if you are actively running Telnet. Close unused ports to reduce your attack surface. If needed, restrict access to trusted IP addresses using firewall rules.
How do I check if port 23 is open?
Use 'nmap -p 23 hostname' to scan remotely, or 'netstat -tlnp | grep 23' to check locally on Linux. On Windows, use 'Test-NetConnection -Port 23 hostname' in PowerShell.
How do I secure port 23?
Secure port 23 by restricting access with firewall rules, using encryption (TLS/SSL) where supported, keeping Telnet updated, using strong authentication, and monitoring for unauthorized access attempts.
🔍 Check Your IP Address
While you're here, find out your public IP address, location, and ISP details instantly.
Check My IP →