FTP explained


FTP or File Transfer Protocol is used to transfer data from one computer to another over the Internet, or through a network.

Specifically, FTP is a commonly used protocol for exchanging files over any network that supports the TCP/IP protocol (such as the Internet or an intranet). There are two computers involved in an FTP transfer: a server and a client. The FTP server, running FTP server software, listens on the network for connection requests from other computers. The client computer, running FTP client software, initiates a connection to the server. Once connected, the client can do a number of file manipulation operations such as uploading files to the server, download files from the server, rename or delete files on the server and so on. Any software company or individual programmer is able to create FTP server or client software because the protocol is an open standard. Virtually every computer platform supports the FTP protocol. This allows any computer connected to a TCP/IP based network to manipulate files on another computer on that network regardless of which operating systems are involved (if the computers permit FTP access). There are many existing FTP client and server programs. FTP servers can be set up anywhere between game servers, voice servers, internet hosts, and other physical servers.

Connection Methods


FTP runs exclusively over TCP. FTP servers by default listen on port 21 for incoming connections from FTP clients. A connection to this port from the FTP Client forms the control stream on which commands are passed to the FTP server from the FTP client and on occasion from the FTP server to the FTP client. FTP uses out-of-band control, which means it uses a separate connection for control and data. Thus, for the actual file transfer to take place, a different connection is required which is called the data stream. Depending on the transfer mode, the process of setting up the data stream is different.

In active mode, the FTP client opens a random port (> 1023), sends the FTP server the random port number on which it is listening over the control stream and waits for a connection from the FTP server. When the FTP server initiates the data connection to the FTP client it binds the source port to port 20 on the FTP server.

In order to use active mode, the client sends a PORT command, with the IP and port as argument. The format for the IP and port is "h1,h2,h3,h4,p1,p2". Each field is a decimal representation of 8 bits of the host IP, followed by the chosen data port. For example, a client with an IP of 192.168.0.1, listening on port 1025 for the data connection will send the command "PORT 192,168,0,1,4,1". The port fields should be interpreted as p1


<-- Previous | Home Glossary | Next -->

📖 Latest blogs mentioning FTP

radwebhosting.com Icon 🏆 Semrush 1,972,408 - 📅 - ???? Deploy Virtualmin on AlmaLinux VPS (5 Minute Quick-Start Guide) - This article provides a how-to guide to deploy Virtualmin on AlmaLinux VPS. What is Virtualmin? Virtualmin is a powerful open-source web hosting control panel built on top of Webmin. It supports: Multi-domain virtual hosting Apache or Nginx PHP ...
raidboxes.io Icon 🏆 Semrush 1,862,220 - 📅 - Empty WordPress cache: Instructions & tips for more speed - Is your website loading slower than usual? Your changes are not visible in the design? Then you should clear the WordPress cache. In this article, you’ll find out why WordPress caching is important for loading times, user-friendliness and SEO, how ...
youstable.com Icon 🏆 Semrush 377,682 - 📅 - How to Monitor & Secure FTP on Linux Server (Complete Guide) - FTP (File Transfer Protocol) is one of the oldest and most widely used methods for transferring files to and from […]

cloudways.com Icon 🏆 Semrush 53,960 - 📅 - Fix WordPress Asking for FTP Credentials in 5 Easy Methods - If you’re trying to install or update a plugin or theme and WordPress suddenly requires FTP or SFTP credentials, you’re dealing with an issue that tells you WordPress isn’t able to directly write to your file system. Because of the rise of managed ...
ionos.ca Icon 🏆 Semrush 109,741 - 📅 - How to install and configure an Ubuntu FTP server - An Ubuntu FTP server makes it easy to upload and download files, with each connection managed securely and individually. Whether you’re setting up file sharing for personal use or managing data transfers in a professional environment, this ...
underhost.com Icon 🏆 Semrush 2,803,586 - 📅 - How to Use cPanel’s File Manager to Manage Your Website - Managing website files shouldn’t require advanced technical skills. With cPanel’s File Manager, you can upload, edit, and organize files directly from your browser—no FTP client needed. This guide walks you through essential features, from creating ...

📋 Latest news about FTP

Benefits of FTP Servers and How Does an FTP Server Work - 📅 - FTP Servers : You may have heard of FTP, or File Transfer Protocol, but you might be unsure what it is exactly. At its core, the file transfer protocol is a way to connect two computers to one another in the safest possible way to help transfer files between two or more points. To put it simply, it’s the means by ...
Finjan Finds Stolen FTP Credentials - 📅 - Security vendor Finjan (finjan.com) announced on Wednesday that it has recently uncovered an illegal database storing more than 8,700 stolen FTP credentials including usernames, passwords and server addresses. The database is being hosted on a server in Hong Kong, even though all of its contents are in Russian, and ...