Home >Common Problem >What is the FTP protocol used for?

What is the FTP protocol used for?

王林
王林Original
2020-07-13 10:36:1610917browse

FTP protocol is a protocol used to transfer files. The FTP protocol is one of the protocols in the TCP/IP protocol group. The FTP protocol includes two components, one is the FTP server, and the other is the FTP client. By default, the FTP protocol uses TCP ports 20 and 21.

What is the FTP protocol used for?

#FTP protocol is a protocol used to transfer files.

Related introduction:

FTP protocol

FTP (File Transfer Protocol, file transfer protocol) is one of the protocols in the TCP/IP protocol group. The FTP protocol consists of two components, one is the FTP server, and the other is the FTP client. The FTP server is used to store files, and users can use the FTP client to access resources located on the FTP server through the FTP protocol.

When developing a website, the FTP protocol is usually used to transfer web pages or programs to the Web server. In addition, because FTP transmission efficiency is very high, this protocol is generally used when transmitting large files on the network.

By default, the FTP protocol uses TCP ports 20 and 21, of which 20 is used to transmit data and 21 is used to transmit control information.

However, whether to use 20 as the port for data transmission is related to the transmission mode used by FTP. If active mode is used, the data transmission port is 20; if passive mode is used, the specific port used ultimately depends on the server side. Negotiate with the client to decide.

The above is the detailed content of What is the FTP protocol used for?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn