IBM Support

Changing FTP To Use Nonstandard Ports

Troubleshooting


Problem

Can the port that the IBM iSeries family of servers FTP server uses be changed from the default of 21?

Resolving The Problem

Problem Summary

Can the port that the IBM iSeries family of servers FTP server uses be changed from the default of 21?

Resolution

On systems running IBM OS/400 V4R4 or later, the port that the FTP server uses is determined from the Service Table. To change the port that the FTP server uses, the entry in the Service Table for FTP that references port 21 must be replaced by one that references the new port to be used.

For example, if the port that the FTP server uses is changed to 2100, the following commands must be used:

oENDTCPSVR *FTP
oRMVSRVTBLE SERVICE('ftp-control') PORT(21) PROTOCOL('tcp')
oRMVSRVTBLE SERVICE('ftp-control') PORT(21) PROTOCOL('udp')
oADDSRVTBLE SERVICE('ftp-control') PORT(2100) PROTOCOL('tcp') TEXT('ftp-control') +
ALIAS('FTP' 'ftp-control')
oADDSRVTBLE SERVICE('ftp-control') PORT(2100) PROTOCOL('udp') TEXT('ftp-control') +
ALIAS('FTP' 'ftp-control')
oSTRTCPSVR *FTP

To connect to this server from a client, use the port option as part of the FTP command:

FTP RMTSYS(YOUR.SERVER.COM) PORT(NEWPORT#)

[{"Product":{"code":"SWG60","label":"IBM i"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"Communications-TCP","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"Version Independent","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]

Historical Number

355438003

Document Information

Modified date:
18 December 2019

UID

nas8N1015860