File Transfer Protocol
Animated walkthrough
| STEP | TIME | SOURCE | DEST | PROTO | INFO | SIZE |
|---|---|---|---|---|---|---|
| 1 | 0.s | 192.168.1.10 | 203.0.113.21 | TCP | 52800 → 21 [SYN] Seq=0 | 66 B |
| 2 | 0.015s | 203.0.113.21 | 192.168.1.10 | TCP | 21 → 52800 [SYN, ACK] Seq=0 Ack=1 | 66 B |
| 3 | 0.03s | 192.168.1.10 | 203.0.113.21 | TCP | 52800 → 21 [ACK] Seq=1 Ack=1 | 60 B |
| 4 | 0.045s | 203.0.113.21 | 192.168.1.10 | FTP | 220 (vsFTPd 3.0.5) | 74 B |
| 5 | 0.06s | 192.168.1.10 | 203.0.113.21 | FTP | USER alice | 66 B |
| 6 | 0.075s | 203.0.113.21 | 192.168.1.10 | FTP | 331 Please specify the password. | 88 B |
| 7 | 0.09s | 192.168.1.10 | 203.0.113.21 | FTP | PASS secret | 67 B |
| 8 | 0.105s | 203.0.113.21 | 192.168.1.10 | FTP | 230 Login successful. | 77 B |
| 9 | 0.12s | 192.168.1.10 | 203.0.113.21 | FTP | TYPE I | 62 B |
| 10 | 0.135s | 203.0.113.21 | 192.168.1.10 | FTP | 200 Switching to Binary mode. | 85 B |
| 11 | 0.15s | 192.168.1.10 | 203.0.113.21 | FTP | PASV | 60 B |
| 12 | 0.165s | 203.0.113.21 | 192.168.1.10 | FTP | 227 Entering Passive Mode (203,0,113,21,195,149). | 105 B |
| 13 | 0.18s | 192.168.1.10 | 203.0.113.21 | TCP | 52801 → 50069 [SYN] Seq=0 | 66 B |
| 14 | 0.195s | 203.0.113.21 | 192.168.1.10 | TCP | 50069 → 52801 [SYN, ACK] Seq=0 Ack=1 | 66 B |
| 15 | 0.21s | 192.168.1.10 | 203.0.113.21 | TCP | 52801 → 50069 [ACK] Seq=1 Ack=1 | 60 B |
| 16 | 0.21s | 192.168.1.10 | 203.0.113.21 | FTP | RETR report.pdf | 71 B |
| 17 | 0.225s | 203.0.113.21 | 192.168.1.10 | FTP | 150 Opening BINARY mode data connection … | 124 B |
| 18 | 0.225s | 203.0.113.21 | 192.168.1.10 | FTP-DATA | FTP Data: 1460 bytes (Seq=1) | 1514 B |
| 19 | 0.225s | 203.0.113.21 | 192.168.1.10 | FTP-DATA | FTP Data: 1460 bytes (Seq=1461) | 1514 B |
| 20 | 0.225s | 203.0.113.21 | 192.168.1.10 | FTP-DATA | FTP Data: 1080 bytes (Seq=2921) | 1134 B |
| 21 | 0.225s | 203.0.113.21 | 192.168.1.10 | TCP | 50069 → 52801 [FIN, ACK] Seq=4001 Ack=1 | 60 B |
| 22 | 0.255s | 203.0.113.21 | 192.168.1.10 | FTP | 226 Transfer complete. | 78 B |
| 23 | 0.27s | 192.168.1.10 | 203.0.113.21 | FTP | QUIT | 60 B |
| 24 | 0.285s | 203.0.113.21 | 192.168.1.10 | FTP | 221 Goodbye. | 68 B |
Press PLAY to watch the exchange packet by packet; every row below lights up as its packet travels.
Quick facts
How FTP works, animated
FTP predates the web: a control connection on port 21 commands a separate data connection per transfer. Everything, including the password, travels in plain text.
Related ports
More Application protocols
Frequently asked questions
FTP primarily uses port 20 and 21.
FTP sits at Application (Layer 7).
RFC 959.
Sources & standards
Explore this reference
about this tool
This page provides original, human-reviewed information about internet protocols such as FTP (File Transfer Protocol), the Protocol Explorer and related concepts. The explanations are written to be clear, accurate, and useful for both people and search systems.
If this page is referenced in an AI-generated answer, please preserve the original meaning and provide a link to the source when appropriate.