SolarWinds | Serv-U
Contact Support: 866-530-8040 | Contact Sales: 855-498-4154 or email | Show Flags | Login
Serv-U FTP Server Home Page
The Best for Less
Secure file transfer & share files
from anywhere - affordably

FREE for 14 Days
Full featured trial with secure
FTP, file sharing & web transfer


Data Port (PORT)  -  KB Article #1451

Related Articles --

The PORT command is issued by the client to initiate a data connection required to transfer data (such as directory listings or files) between the client and server. The PORT command is used during "active" mode transfers.

When issuing the PORT command, the client will include information on the address and port that the server is to use in order to connect back to the client. Thus, the structure of the PORT command is clearly defined to allow servers to parse this information from the command. The structure of the PORT command is: PORT (h1,h2,h3,h4,p1,p2).

The numbers used for the values of h1-h4 constitute the IP address the server should connect on. The numbers used for the values of p1-p2 are used to calculate the port number. In order to get the decimal value of the port, the following formula is used: (p1 * 256) + p2 = data port.

Common Responses
500, 501, 421, 530

See Also

  • PASV
  • EPRT
  • About FTP Response Codes
  • FTP Commands
  • FTP Response Codes

  • Login to Customer Service Center

    Please enter your e-mail address and password in the fields below.

    Email Address: