Home / Port numbers / Port 548
Port 548: AFP
Apple's older file sharing protocol. Port 548 uses TCP.
- Port
- 548
- Commonly used for
- AFP
- Transport
- TCP
- Encrypted
- No
- Range
- System (well-known) port, 0 to 1023
- Our advice
- Keep it closed to the internet
- IANA registration
afpovertcpAFP over TCP (TCP, UDP)
Registration: IANA Service Name and Transport Protocol Port Number Registry, retrieved 15 November 2026. The registered name can differ from the everyday use, because popular software often adopts a port without registering it. The description and advice are written by Home Net Guide and describe common practice: any program can be set to use any port.
What port 548 is used for
Port 548 is the Apple Filing Protocol, the file sharing system of older Macs and the original Time Machine network backups. Apple has moved to SMB: recent versions of macOS can no longer act as an AFP server, and Apple says AFP is not supported at all from macOS 27. Many NAS devices still offer it.
Should port 548 be open?
It is a legacy protocol that receives little attention, and serious flaws have been found in the open-source AFP server (Netatalk) that NAS makers ship. Turn it off on a NAS if every Mac you own can use SMB, and never expose it to the internet.
Related ports
- Port 445 (SMB): Windows file and printer sharing
- Port 2049 (NFS): Unix and Linux network file shares
See all port numbers for the full list and how ports, TCP and UDP work.