SENDPORT (Specify Whether to Sends a PORT Subcommand)

FTP client subcommand

To specify whether to send a PORT subcommand to the FTP server when doing a data transfer or when issuing the DIR and LS subcommands. Enter the SENDPORT FTP client subcommand:

SENDPOrt [ 0 | 1 ]

If there is no parameter, SENDPORT works like a toggle switch. The SENDPORT value changes from 1 (ON) to 0 (OFF) or from 0 to 1.

When there is a parameter, the valid values are:

0
Do not send a PORT subcommand.
1
Send a PORT subcommand. This is the default.
Notes:
  1. Use SENDPORT only when you cannot establish a connection to the server without it. The indiscriminate use of SENDPORT might result in errors.
  2. You might find it useful to not send the PORT subcommand to those systems that ignore PORT subcommands because they indicate that they have accepted the command.
  3. The server does not send the PORT subcommand when the SENDPASV option is ON.
Related reference
SENDPASV (Specify Whether to send a PASV Subcommand)
File Transfer Protocol client syntax conventions