which port does ftp use
The FTP protocol typically uses port 21 as its main means of communication. An FTP server will listen for client connections on port 21. FTP clients will then connect to the FTP server on port 21 and initiate a conversation. This main connection is called the Control Connection or Command Connection. The FTP client will usually authenticate itself with the FTP server by sending over a username and a password.