FTP (File Transfer Protocol) uses port 21 for control connection and port 20 for data connection (in active mode). However, in passive mode, the data connection can use any randomly allocated port number from 1024 to 65535.