TCP port 993 is used by IMAPS, meaning IMAP with implicit TLS.
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 mail server listens on 993 and clients connect expecting encryption immediately.
The session begins with a TCP handshake and then a TLS handshake, after which the client authenticates and synchronizes folders, headers, and message flags.
The practical advantage over plain IMAP on 143 is that encryption is established before any credentials are sent, which avoids STARTTLS downgrade and misordering issues when clients are misconfigured.
From a security perspective, IMAPS protects data in transit but does not stop account compromise, so rate limiting, MFA, and monitoring for unusual mailbox access are still essential.