FTP (File Transfer Protocol)
FTP server listens on TCP port 21 by default. Very efficient for file transfer. Can be faster than HTTP

Example commands defined by the FTP protocol are:
USER
is used to input the usernamePASS
is used to enter the passwordRETR
(retrieve) is used to download a file from the FTP server to the client.STOR
(store) is used to upload a file from the client to the FTP server.
In the terminal below we executed the command ftp 10.10.240.137
to connect to the remote FTP server using the local ftp
client. Then we went through the following steps:
We used the username
anonymous
to log inWe didn’t need to provide any password
Issuing
ls
returned a list of files available for downloadtype ascii
switched to ASCII mode as this is a text fileget coffee.txt
allowed us to retrieve the file we want
With Wireshark we can see the exchange more closely. The client’s messages are in red, while the server’s responses are in blue

Last updated