SENDPORT (Specify Whether to Sends a PORT Subcommand)
The SENDPORT IBM® i FTP client subcommand specifies whether to send a PORT subcommand to the FTP server when you transfer data or issue the DIR and LS subcommands.
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:
- Use SENDPORT only when you cannot establish a connection to the FTP server without it. The indiscriminate use of SENDPORT might result in errors.
- 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.
- The FTP client does not send the PORT subcommand when the SENDPASV option is ON.