TCP port 143 is used by IMAP, an email synchronization protocol.
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.
An IMAP server listens on 143 and clients connect from ephemeral source ports.
After the TCP handshake, the client can upgrade the session to TLS using STARTTLS, then authenticate and synchronize folders and message state such as read flags and deletions.
Unlike POP3, IMAP keeps the mailbox on the server and is designed for multiple devices, so clients often fetch headers and only download full bodies when needed.
The practical security detail is that port 143 can start in cleartext unless TLS is enforced, which creates risk if clients send credentials before upgrading.
That is why many environments prefer IMAPS on port 993 where encryption is established immediately, and why monitoring for brute force on IMAP ports is common.