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:
| o | ENDTCPSVR *FTP |
| o | RMVSRVTBLE SERVICE('ftp-control') PORT(21) PROTOCOL('tcp') |
| o | RMVSRVTBLE SERVICE('ftp-control') PORT(21) PROTOCOL('udp') |
| o | ADDSRVTBLE SERVICE('ftp-control') PORT(2100) PROTOCOL('tcp') TEXT('ftp-control') + ALIAS('FTP' 'ftp-control') |
| o | ADDSRVTBLE SERVICE('ftp-control') PORT(2100) PROTOCOL('udp') TEXT('ftp-control') + ALIAS('FTP' 'ftp-control') |
| o | STRTCPSVR *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#) |
Historical Number
355438003
Was this topic helpful?
Document Information
Modified date:
18 December 2019
UID
nas8N1015860