TCP port 23 is traditionally used by Telnet for remote terminal access.
A port is a transport layer number used together with an IP address and a protocol such as TCP or UDP to direct traffic to the correct service on a host.
A server process binds a socket to a port and listens, while a client typically chooses an ephemeral source port for outbound connections.
The combination of source and destination IP addresses, source and destination ports, and the transport protocol uniquely identifies a flow so the operating system can keep many conversations separate.
Firewalls, NAT, and scanners talk about ports because the destination port is the stable rendezvous point that exposes a service to the network.
A Telnet server listens on port 23, and a client opens a TCP connection from an ephemeral source port to destination port 23.
After the handshake, keystrokes and output flow as plain text with no built in encryption.
In practice that means usernames, passwords, and commands can be read or modified by anyone who can observe or intercept the traffic on the path.
This is why Telnet is largely legacy today and is replaced by SSH on port 22 for secure administration.
If you still find 23 open, it often indicates older network gear, lab environments, or misconfigured management interfaces that should be isolated.