Telnet’s remote login relies on TCP port 23, but its traffic isn’t encrypted, making it insecure for credentials. Compare with SSH on port 22. Learn how common ports like 25 (SMTP), 520 (RIP), and 111 (RPC) fit into the broader map of network services and protocols.

Multiple Choice

Telnet uses which port?

Telnet uses port 23. In networking, each service is assigned a well-known port, and Telnet’s remote login service is designated to TCP port 23 so clients know where to connect to establish a terminal session. Because Telnet traffic isn’t encrypted, it’s insecure for login credentials, which is why SSH (secure shell) on port 22 is preferred today. Other familiar ports map to different services: 25 is SMTP for email, 520 is RIP for routing information, and 111 is RPC (portmapper) used by SunRPC services.

Port Numbers, Services, and Protocols: A Friendly Guide to the Hidden Address Book of the Internet

Let’s walk through a small but mighty idea that lights up countless online conversations every day: port numbers. Think of a computer network as a bustling city. Every building (a server) has doors (ports) that lead to different rooms (services). The same building can host a dozen activities at once—email, file transfers, web pages, remote logins—without stepping on each other’s toes, because each service uses its own door, a unique port number. This is the backbone of how devices find and talk to one another across the vast, sometimes chaotic landscape of the Internet.

The basics, with a pinch of nostalgia

Back in the early days of computer networking, people worried a lot about “how do I reach the right place?” The answer turned into a simple convention: well-known port numbers assigned to common services, so clients and servers could discover each other efficiently. A server announces, “I’m listening on this particular door,” and a client says, “Great, I’ll knock on that door and start a session.” The result is a clean, organized means of delivering everything from emails to remote command lines.

A quick vocabulary refresher

  • IP address: the street address of a device on a network.

  • Port: a virtual door on that device—there are 65,535 possible doors for TCP and UDP traffic.

  • Protocol: the language two systems use when they talk. TCP and UDP are the two big ones you’ll see most often.

  • Service: the application or function that uses a port, like email transfer, web pages, or remote login.

Let’s use Telnet as the classic teaching moment

Telnet occupies a particular niche in the tapestry of network services. It’s a protocol that lets you log into a remote computer and work as if you were sitting in front of it. The key detail? It has a designated door: port 23. When your computer wants to start a terminal session with a distant machine running Telnet, it targets TCP port 23. The handshake happens, credentials can be entered, and there you go—remote command-line access. The catch, which shows up in every good networking story, is about security. Telnet’s traffic is unencrypted. That means usernames and passwords travel in plain text, easy to sniff if someone is listening in. It’s a relic of early networks, elegant in its simplicity but not in its security posture.

If you’ve ever wondered why SSH exists, here’s the short version

Because the world loves convenience and security, SSH—Secure Shell—took Telnet’s concept and wrapped it in strong encryption. SSH typically runs on port 22, providing the same core idea of remote login but with privacy baked in. When you’re connecting to a server to administer it or to run commands remotely, you’ll hear about SSH as the trusted, modern alternative. It’s a little like using a private, locked door with a coded key versus a glass door with a bare handle.

Mapping a few familiar ports to their services

Beyond Telnet and SSH, the Internet’s door system gets even more colorful. Here are a few well-known doors you’ll encounter:

  • Port 25: Simple Mail Transfer Protocol (SMTP). This is the lane for sending email from one mail server to another. It’s the traffic that carries messages through the Internet’s email highways. Modern email systems also use ports 587 or 465 for submission or secure submission, but 25 remains the classic edge between servers.

  • Port 520: Routing Information Protocol (RIP). This is one of those aging routing protocols that helped networks learn paths to destinations. It’s a reminder that the Internet’s growth isn’t just about shiny new tech—it’s also about the old stuff sticking around, kept in check by modern routing protocols and security practices.

  • Port 111: RPC (Portmapper) used by SunRPC services. RPC, or Remote Procedure Call, is a way for a program on one computer to request a service from a program on another computer. Portmapper helps clients discover which port a particular RPC service is listening on. It’s a foundational piece in certain distributed applications, though in modern deployments you’ll see RPC patterns evolve with more secure or alternative approaches.

A few other familiar faces you’ll hear about

  • Port 80: Hypertext Transfer Protocol (HTTP), the old standby for serving web pages. Modern days bring HTTPS on port 443, plain HTTP’s more of a nostalgic curiosity to many.

  • Port 443: HTTPS, HTTP over TLS/SSL. The lock icon you see in the browser isn’t there by accident. This is where encryption protects data in transit, a big leap forward for privacy and trust online.

  • Port 22: SSH, as we mentioned, the secure cousin to Telnet for remote access.

  • Port 21: FTP, the old file transfer protocol. It’s not encrypted by default, so secure variants (like SFTP, which actually runs over SSH) have become the preferred options for moving files safely.

How these doors impact everyday experiences

Understanding port numbers isn’t about memorizing a trivia list; it’s about grasping how services coexist without colliding. When you load a website, your browser uses port 80 (or 443 for secure access). If you’re sending an email, your mail client talks to mail servers using specific ports that keep the data flow consistent and predictable. When administrators plan networks, they map out which doors are open, which are closed, and which require extra scrutiny. A misconfigured port can be a rickety gate—one that lets in the good traffic but also questionable stuff, or it can block legitimate services entirely, causing a week of strange glitches.

The security angle—trust but verify

Speaking of gates, security is the big reason people think twice about older doors like Telnet. When you connect to a distant system with Telnet, you’re telling the world your credentials in a not-so-sealed envelope. It’s a design flaw born in an era when network eavesdropping wasn’t a big concern. Today, security-minded networks prefer encrypted channels, like SSH for remote access and TLS-secured web traffic for most public services. Firewalls, intrusion detection systems, and proper port hardening are also part of the ongoing effort to ensure that open doors don’t become open invitations.

A few practical takeaways (without turning this into a lab manual)

  • Know your doors. If you’re curious about a service, look up its default port and protocol. It helps you understand traffic patterns, latency considerations, and potential security implications.

  • Use encryption where possible. If you’re configuring any remote access, favor secure options like SSH over Telnet or unsecured protocols over unencrypted channels.

  • Keep the doors sane. In a well-managed network, only the necessary ports are open to the right systems. Unused doors should stay closed, and those that must be exposed should be guarded with strong authentication and monitoring.

  • Remember the evolution. Some older protocols linger in legacy environments. They’re not inherently evil, but they deserve careful handling, especially on networks connected to the broader Internet.

A moment to wander into a related corner

While we’re on the topic of doors and hallways, it’s worth noting that ports aren’t the only thing that makes network traffic predictable. Protocols themselves shape how data is packaged, labeled, and interpreted. For example, TCP’s reliable, connection-oriented approach is like a patient courier that guarantees delivery in order, while UDP’s fire-and-forget style is more about speed and less about perfect sequencing. Depending on the job—video streaming, real-time gaming, or simple beacon signals—one protocol often wins out over the other. It’s a neat reminder that the story of networking isn’t just about which door you knock on, but also about how you carry your message through the hallway.

A quick glance at the big picture

  • Ports are the Internet’s internal room numbers. They help services share a single device without stepping on each other’s toes.

  • Telnet’s port 23 is iconic as the old remote login door that’s notoriously insecure by today’s standards.

  • SSH on port 22 offers a safer way to access remote systems without sacrificing the convenience of remote administration.

  • Other well-known ports—like 25 for SMTP, 520 for RIP, and 111 for RPC—paint a broader map of how services are organized and how data finds its way through networks.

Closing thought: curiosity as a compass

If you’re ever poking around a network diagram or a server’s settings, let curiosity be your compass. Ask questions like: Why this port for that service? What would happen if I closed this door? How does encryption change the risk landscape for a given protocol? It’s a practical mindset that makes the arcane world of ports feel less like a maze and more like a thoughtfully laid-out city.

And if you end up tinkering with a remote system for a thoughtful project, you’ll appreciate the elegance of the door system even more. Each service has its own door, and behind each door, there’s a story about how devices connect, share, and trust one another in a vast, interconnected world. The more you explore, the more you’ll see that these numbers aren’t just digits on a screen—they’re the quiet, steady gatekeepers of digital life.