By default, FTP protocol uses two TCP ports, 20 and 2 1, where 20 is used to transmit data and 2 1 is used to transmit control information.
However, whether to use 20 as the data transmission port is related to the transmission method used by FTP. If active mode is adopted, the data transmission port is 20; If passive mode is adopted, the server and the client should negotiate to decide which port to use finally.
Extended data:
Like most Internet services, FTP is a client/server system. Users connect to server programs running on remote computers through client programs.
Services are provided according to the FTP protocol. The computer that transmits files is an FTP server, and the computer that connects to the FTP server and transmits files with the server according to the FTP protocol is an FTP client.
To connect to the ftp server, users need to use FTP client software. Usually, Windows comes with the "FTP" command, which is a command-line FTP client program.
Other commonly used FTP client programs are FileZilla, CuteFTP, Ws_FTP, Flashfxp, LeapFTP, Meteor Shower-Cat's Eye, etc.
Login of 1.FTP server
Anonymous user: FTP password: FTP
User: anonymous password: any email
2. Display file information: directory /LS
3. Download file: get the file name (download to the current directory)
4. Upload file: upload file name.
5. Multi-file download: MGET
6. Multi-file upload: MPUT
7. Exit: Goodbye
8. Help: Help
References:
Baidu encyclopedia -FTP protocol
Baidu Encyclopedia -ftp (File Transfer Protocol)