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

🏆 Semrush 1,435,349 - 📅 - How to Access an FTP Server on a Mac - You can access an ftp server on macos quickly by using Finder. This method lets you connect to a server and treat it almost like a local disk, but Finder only allows read-only access. If you want to view, edit, or transfer files with more control, ...
10web.io Icon 🏆 Semrush 89,977 - 📅 - How to Clone Any Website with 10Web (Step-by-Step Guide) - You found a site that looks like what you want to create. The structure and composition is just the way you’ve been imagining yours to be. So you decide to clone it and use it as a base. Ten minutes later you’re reading about FTP transfers, database
supporthost.com Icon 🏆 Semrush 391,215 - 📅 - What is SFTP? And How to Use It - Every website owner needs to transfer files to their server, whether uploading a new plugin, restoring a backup, or editing configuration files. If you’re still using FTP to move files, your data travels across the internet in plain text. Anyone ...
supporthost.com Icon 🏆 Semrush 391,215 - 📅 - What is FTP? A Complete Guide to File Transfer Protocol - You need to move files from your computer to your web server. How do you do it? FTP solves this problem and makes it easy. It’s been the standard for file transfers for decades. Every website owner should know the basics, even if your rarely use it.
ionos.fr Icon 🏆 Semrush 1,029,185 - 📅 - Quel client FTP choisir pour transférer vos fichiers ? - Connaissez-vous le File Transfer Protocol ? Si ce n’est pas le cas, il est temps de vous y intéresser, car ce protocole facilite considérablement l’échange de données numériques. Pour transférer de gros volumes de fichiers, l’utilisation d’un ...
ionos.es Icon 🏆 Semrush 579,042 - 📅 - Los 9 mejores clientes FTP para Windows y Mac - ¿Conoces el File Transfer Protocol (FTP)? Este protocolo facilita la transferencia de archivos entre tu equipo y un servidor. Si gestionas una página web o trabajas con grandes volúmenes de datos, utilizar un servidor FTP es casi imprescindible. ...
ionos.co.uk Icon 🏆 Semrush 152,394 - 📅 - Which FTP client is the best? 9 FTP programs for Windows & Mac compared - Are you familiar with the File Transfer Protocol, or FTP for short? If not, you should get to know it, as this transfer protocol greatly simplifies digital data exchange. Especially when dealing with large amounts of data, using an FTP server is ...

📋 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 ...