knownports / Handbook

File transfer and file sharing port numbers

By Liam CooperNovember 5, 2026Updated November 22, 2026IANA registry as updated October 27, 2026

In the IANA registry, FTP holds two numbers, ftp-data on 20 and ftp on 21, and its TLS forms hold 989 and 990. Port 69 is tftp, 137 to 139 are the NetBIOS services, 445 is microsoft-ds, 2049 is nfs and 3260 is iscsi-target. Counted by words in their names and labels, 82 service names on 80 numbers concern files or file transfer.

This article reads those entries as the registry records them. The registry says which name holds which number and on which transport; it says nothing about the software on a given network, and a server can be configured to listen anywhere.

The entries behind the familiar numbers

PortServiceProtocolsLabelRegisteredModified
20ftp-dataTCPUDPSCTPFile Transfer [Default Data]—Feb 7, 2022
21ftpTCPUDPSCTPFile Transfer Protocol [Control]—Feb 7, 2022
69tftpTCPUDPTrivial File Transfer——
115sftpTCPUDPSimple File Transfer Protocol——
137netbios-nsTCPUDPNETBIOS Name Service——
138netbios-dgmTCPUDPNETBIOS Datagram Service——
139netbios-ssnTCPUDPNETBIOS Session Service——
445microsoft-dsTCPUDPMicrosoft-DS——
548afpovertcpTCPUDPAFP over TCP——
873rsyncTCPUDPrsync——
989ftps-dataTCPUDPftp protocol, data, over TLS/SSL——
990ftpsTCPUDPftp protocol, control, over TLS/SSL——
2049nfsTCPUDPSCTPNetwork File System - Sun Microsystems——
3260iscsi-targetTCPUDPiSCSI port—Aug 27, 2013
5445smbdirectTCPSCTPServer Message Block over Remote Direct Memory AccessMar 15, 2012—
9418gitTCPUDPgit pack transfer serviceSep 2005—
20048mountdTCPUDPNFS mount protocolAug 9, 2010—

Of these 17 entries, only three cite a document of their own: ftp on 21, nfs on 2049 and iscsi-target on 3260. The rest have a label and little else. Most carry no registration date either; the registry's dates run mainly from 2002 on. The exceptions in the table are git (September 2005), mountd (August 9, 2010) and smbdirect (March 15, 2012).

FTP and its TLS forms

FTP has separate numbers for control and data. ftp on 21 cites RFC 959, “File Transfer Protocol”, published in October 1985 and still listed as an Internet Standard. ftp-data on 20 sits directly below it. Both also carry an SCTP entry, and both show February 7, 2022 as their last change, the date on which many SCTP rows were edited to cite RFC 9260.

The TLS forms follow the same split, on 989 for data and 990 for control. Their labels read “ftp protocol, data, over TLS/SSL” and “ftp protocol, control, over TLS/SSL”, and neither row cites a document.

The name sftp needs a second look. The registry entry on 115 is labelled “Simple File Transfer Protocol”, an older protocol. The registry has no separate row for file transfer over SSH, whose only entry in this area is ssh on 22.

Every name that contains “ftp”

The letters “ftp” appear in 26 service names, and one of them is assigned on TCP alone.

PortServiceProtocolsLabelRegistered
20ftp-dataTCPUDPSCTPFile Transfer [Default Data]—
21ftpTCPUDPSCTPFile Transfer Protocol [Control]—
69tftpTCPUDPTrivial File Transfer—
115sftpTCPUDPSimple File Transfer Protocol—
152bftpTCPUDPBackground File Transfer Program—
215softpcTCPUDPInsignia Solutions—
247subntbcst-tftpTCPUDPSUBNTBCST_TFTP—
247subntbcst_tftpTCPUDPSUBNTBCST_TFTP—
349mftpTCPUDPmftp—
574ftp-agentTCPUDPFTP Software Agent System—
662pftpTCPUDPPFTP—
989ftps-dataTCPUDPftp protocol, data, over TLS/SSL—
990ftpsTCPUDPftp protocol, control, over TLS/SSL—
1758tftp-mcastTCPUDPtftp-mcast—
1818etftpTCPUDPEnhanced Trivial File Transfer Protocol—
2529utsftpTCPUDPUTS FTP—
2811gsiftpTCPUDPGSI FTP—
3305odette-ftpTCPUDPODETTE-FTP—
3713tftpsTCPUDPTFTP over TLSMar 2003
3920exasoftport1TCPUDPExasoft IP PortNov 2003
5402mftpTCPUDPOmniCast MFTP—
6619odette-ftpsTCPUDPODETTE-FTP over TLS/SSLMar 2006
6620kftp-dataTCPUDPKerberos V5 FTP DataAug 2005
6621kftpTCPUDPKerberos V5 FTP ControlAug 2005
6622mcftpTCPUDPMulticast FTPFeb 2006
37601eftpTCPEpipole File Transfer ProtocolNov 13, 2014

NetBIOS and port 445

The three NetBIOS names hold consecutive numbers: netbios-ns on 137 for the name service, netbios-dgm on 138 for datagrams and netbios-ssn on 139 for sessions. Each is assigned on both TCP and UDP. None has a date, a modification or a reference.

Port 445 is registered to microsoft-ds, labelled simply “Microsoft-DS”. The registry row does not spell out what the letters stand for and does not mention Server Message Block. That term appears in the label of smbdirect on 5445, “Server Message Block over Remote Direct Memory Access”, registered on March 15, 2012. It is assigned on TCP and SCTP, with the UDP number held as reserved, unlike the older entries in the table.

NFS and its helpers

Port 2049 carries two names: nfs, on TCP, UDP and SCTP, and shilp, on TCP and UDP, with no label. The nfs row cites RFC 5665. Its helper mountd, labelled “NFS mount protocol”, sits far away on 20048, and sunrpc is on 111. Not every number in this family belongs to it: 4045 is registered to npp, “Network Paging Protocol”. On 1110, TCP belongs to webadmstart and UDP to nfsd-keepalive, two unrelated names on one number.

Block storage

Storage over IP takes three numbers in the low User Ports: isns on 3205, fcip-port on 3225 and iscsi-target on 3260. All three cite an RFC, which sets them apart from the file protocols above. iscsi-target was last modified on August 27, 2013.

RFCTitlePublishedStatusLater changes
RFC 959File Transfer ProtocolOct 1985Internet Standardupdated by RFC 2228, RFC 2640, RFC 2773, RFC 3659 and 2 more
RFC 5665IANA Considerations for Remote Procedure Call (RPC) Network Identifiers and Universal Address FormatsJan 2010Proposed Standard—
RFC 7143Internet Small Computer System Interface (iSCSI) Protocol (Consolidated)Apr 2014Proposed Standard—
RFC 4171Internet Storage Name Service (iSNS)Sep 2005Proposed Standard—
RFC 3821Fibre Channel Over TCP/IP (FCIP)Jul 2004Proposed Standardupdated by RFC 7146

When the file-related names arrived

Of the 82 matches, 38 have a registration date. The busiest year is 2006, with seven. Before 2011, one of 28 dated names took a single transport; from 2011 on, nine of 10 did.

024682002: 220022003: 32004: 32005: 52006: 72007: 42008: 22009: 12010: 120102011: 22012: 32013: 12014: 12015: 02016: 22017: 02018: 020182019: 02020: 02021: 12022: 02023: 02024: 02025: 02026: 02026
024682002: 220022003: 32004: 32005: 52006: 72007: 42008: 22009: 12010: 12011: 22012: 32013: 12014: 12015: 02016: 22017: 02018: 02019: 02020: 02021: 12022: 02023: 02024: 02025: 02026: 02026
File-related service names by year of first recorded registration (38 dated entries).

Of the 80 numbers, 20 are System Ports. The range with the most matches is ports 2000–2999, with twelve, followed by ports 1024–1999 with ten and ports 4000–4999 with nine.

Numbers with no entry, and the rest of the list

Some numbers that come up around file sharing have no row at all: 6881 and 21027 carry no assignment. gnutella-svc does hold a number, 6346. Other entries are small and specific, such as afpovertcp on 548, “AFP over TCP”, rsync on 873 and git on 9418, “git pack transfer service”.

The match rule is simple: a name counts when it contains “ftp”, “nfs”, “smb” or “rsync”, or when its label has the word “file” or “files”, “filesystem”, “NFS”, “SMB” or “Server Message Block”. It catches backup and document services as well, so treat the total as an upper bound. To see this article's numbers side by side, open them in the port list check, or search ftp in the lookup.

Sources. IANA Service Name and Transport Protocol Port Number Registry, updated October 27, 2026 (CC0 1.0). RFC metadata (titles, dates, status) from the RFC Editor rfc-index.xml. Counts computed by knownports.online from the registry file; definitions on the sources page.

In the tables on this page a dash (—) means the IANA registry gives no value for that field; many early assignments, for example, carry no registration date.