LightAtom

Common Network Ports: The Complete List

The ports you'll actually run into, from 22 to 51820, with the protocol, what uses them and where they show up on a Mac.

Ports 0–1023 are the well-known ports, assigned by IANA to core services: 22 for SSH, 53 for DNS, 80 for HTTP and 443 for HTTPS. Ports 1024–49151 are registered ports (like 3306 for MySQL and 3389 for RDP), and 49152–65535 are dynamic ports used temporarily by clients.

How it works

One IP address with many ports, each leading to a different service.

Three ranges

  • 0–1023, well-known: standard services. Listening on them normally needs root; since Mojave, macOS lets any user listen on them on all interfaces (0.0.0.0), but not on a specific address like 127.0.0.1.
  • 1024–49151, registered: assigned to specific applications, though many are used informally.
  • 49152–65535, dynamic or ephemeral: your Mac picks one of these as the source port for each outgoing connection.

TCP and UDP are separate

Port 53/UDP and 53/TCP are different sockets. Most services use one protocol; DNS uses both, and HTTP/3 uses UDP 443 while HTTP/1.1 and HTTP/2 use TCP 443.

A port number is a convention, not a guarantee

Anything can listen on any port. Traffic on 443 is usually HTTPS, but VPNs and tunnels use it too precisely because it's rarely blocked. To know what's really behind a port, look at the process.

Common ports

PortProtocolServiceNotes
20, 21TCPFTP (data, control)Unencrypted file transfer; avoid
22TCPSSH, SFTP, SCPRemote login (Remote Login on a Mac)
23TCPTelnetUnencrypted; legacy devices
25TCPSMTPMail between servers; often blocked by ISPs
53UDP/TCPDNSName lookups
67, 68UDPDHCPServer, client
69UDPTFTPNetwork boot, device firmware
80TCPHTTPUnencrypted web
88TCP/UDPKerberosActive Directory sign-in
110TCPPOP3Mail download (995 with TLS)
123UDPNTPTime sync (time.apple.com)
137–139TCP/UDPNetBIOSLegacy Windows sharing
143TCPIMAPMail (993 with TLS)
161, 162UDPSNMPDevice monitoring, traps
179TCPBGPRouting between networks
389TCPLDAPDirectories (636 with TLS)
443TCP/UDPHTTPS, HTTP/3 (QUIC)Encrypted web; most app traffic
445TCPSMBFile sharing (Finder › Connect to Server)
465TCPSMTP over TLSMail submission, implicit TLS
500, 4500UDPIKE, IPsec NAT-TIPsec VPNs (built into macOS)
514UDPSyslogLog collection
548TCPAFPLegacy Apple file sharing
587TCPSMTP submissionSending mail from apps
631TCPIPP, CUPSPrinting
853TCPDNS over TLSEncrypted DNS
993TCPIMAPSMail with TLS
995TCPPOP3SMail with TLS
1194UDPOpenVPNVPN
1433TCPMicrosoft SQL ServerDatabase
1883, 8883TCPMQTTIoT messaging (8883 with TLS)
3000TCPDev serversNode, Rails, React (by convention)
3306TCPMySQL, MariaDBDatabase
3389TCP/UDPRDPWindows Remote Desktop
3478UDPSTUN, TURNCalls and WebRTC through NAT
5000, 7000TCPAirPlay ReceiverUsed by macOS (often collides with dev servers)
5060, 5061TCP/UDPSIPVoIP signalling
5173TCPViteDev server
5223TCPApple Push (APNs)Push notifications
5353UDPmDNS, BonjourLocal discovery
5432TCPPostgreSQLDatabase
5900TCPVNC, Screen SharingRemote screen on a Mac
6379TCPRedisDatabase, cache
8080TCPHTTP alternateProxies, dev servers
8443TCPHTTPS alternateAdmin panels, dev servers
9100TCPRaw printingJetDirect printers
27017TCPMongoDBDatabase
51820UDPWireGuardVPN (default)

Examples

$ lsof -nP -iTCP -sTCP:LISTEN
COMMAND     PID  USER  FD  TYPE  …  NAME
ControlCe   612  me    9u  IPv4  …  TCP *:7000 (LISTEN)
ControlCe   612  me   10u  IPv4  …  TCP *:5000 (LISTEN)

ControlCenter listening on 5000 and 7000 is macOS's AirPlay Receiver, a frequent cause of “port 5000 already in use”.

On a Mac

  • lsof -nP -iTCP -sTCP:LISTEN lists listening TCP ports and their processes; add -iUDP for UDP.
  • /etc/services maps port numbers to names.
  • nc -vz host port tests whether a remote port is open.

See it in the app

LightAtom's Ports view shows every listening port and the app behind it; the connections view shows the remote port of each connection.

Download the printable PDF

Frequently asked questions

What are the well-known ports?

Ports 0 to 1023, assigned by IANA to standard services like SSH (22), DNS (53), HTTP (80) and HTTPS (443).

What port is HTTPS?

443, over TCP for HTTP/1.1 and HTTP/2, and over UDP for HTTP/3.

Which ports are used by macOS?

Common ones are 5353 (Bonjour), 5000 and 7000 (AirPlay Receiver), 5223 (push notifications), 123 (time) and, if enabled, 22 (Remote Login), 445 (file sharing) and 5900 (Screen Sharing).

How do I see which ports are open on my Mac?

Run lsof -nP -iTCP -sTCP:LISTEN in Terminal, or use LightAtom's ports view.

What is the highest port number?

65535. Port numbers are 16-bit, from 0 to 65535.

LightAtom team

The people who build LightAtom, a network monitor for macOS.