Question 20 for Active FTP and Passive FTP

Updated on Financial 2024-04-08
6 answers
  1. Anonymous users2024-02-07

    main point is using port or pasv cmd.

    use pasv cmd port num take from client.

    use pasv cmd server will return message with 227.

    not use port 20 is for the security .

    FTP file transfer uses two sockets.

    Active is the IP address with the port number from the server and the PASSIVE request from the client to the server.

    A port is automatically generated by the server and sent to the client.

  2. Anonymous users2024-02-06

    FTP active mode means that FTP will use its own port 20 to actively establish a connection with the client, and an error will occur when the client network does NAT. Think of the NAT port as if the client established a connection to the FTP port 20.

  3. Anonymous users2024-02-05

    The ports are different, and FTP transmission requires 2 ports. If you are active, it is 21 waiting for connection, 20 is actively initiated, and if you are passive, it is 21 and a random port greater than 1024 is waiting for connection. In active mode, the client's firewall may be blocked, while in passive mode, the server's random ports may be attacked.

    If there is no firewall at both ends, it doesn't matter if you are active or passive.

  4. Anonymous users2024-02-04

    It can be briefly summarized in the following two points:

    1. Active FTP:

    Command connection: client > port 1024 - > server port 21 data connection: client > port 1024 < - server port 20 port 2, passive ftp:

    Command connection: Client > port 1024 - > server port 21 Data connection: client > port 1024 - > server port >1024.

  5. Anonymous users2024-02-03

    To set up the active mode and passive mode of FTP, the tool used: 8UFTP, the steps are as follows:

    2.In the firewall settings, check the passive (pasv) mode (p) to be the passive mode, and remove the check box to be the active mode.

    Note: Applicable to 8uftp

  6. Anonymous users2024-02-02

    Active mode: The FTP client connects from any non-special port (N > 1023) to the command port of the FTP server, port 21. The client then listens on port N+1 (N+1 >= 1024) and sends commands to the FTP server over port N+1 (N+1 >= 1024).

    The server will in turn connect to the user's locally specified data port, such as port 20.

    Passive mode: In passive FTP, both command connections and data connections are sent by the client, which solves the problem that the inbound connection from the server to the client's data port is filtered out by the firewall. When an FTP connection is opened, the client opens two arbitrary non-privileged local ports (n >; 1024 and n+1).

    The first port connects to port 21 of the server, but unlike active FTP, the client does not submit the port command and allows the server to connect to and from its data port, but instead submits the pasv command. The result of this is that the server opens an arbitrary unprivileged port (p >; 1024) and send the port p command to the client. The client then initiates a connection from the local port N+1 to the server's port P to transmit the data.

    I'm the technical guy of Haiteng Data Center, and I'm happy to answer your questions. If you need a server or technical support, you can contact the technical guy.

Related questions
3 answers2024-04-08

Unified external network: In this case, if one machine sets up FTP, the other 99 machines, including the local machine, can access FTP (this is the intranet). >>>More

2 answers2024-04-08

HTTP is a protocol designed to send content from web servers located anywhere in the world to an unspecified number of users. In other words, HTTP can be thought of as a protocol designed to "distribute" files to an unspecified number of users. >>>More

11 answers2024-04-08

Alas, first you have to understand that FTP is a service:

FTP is the English abbreviation of File Transfer Protocol, and the Chinese abbreviation is "Wenchuan Protocol". It is used for the bi-directional transfer of control files on the Internet. At the same time, it is also an application. >>>More

2 answers2024-04-08

1. Set the IP address and domain name of SERV-U. Click "Next" all the way to skip the system prompt message, and come to the "Your IP Slow Address" window, which asks you to enter the IP address of the machine, enter your IP address, if your computer has a fixed IP address, then enter it directly; If there are only dynamic IPs (e.g. dial-up users), leave this blank and Serv-U will automatically determine your IP address when it runs. Next, set the domain name. >>>More

7 answers2024-04-08

After installation, create a new site in the management,Write the site's IP,User name,Password,Then you can log in directly to the **space,Perform**or upload,(Select the directory,Double-click the file in the space to go directly to the selected directory,If you double-click the local file, upload it directly to the space.。 That's all.