KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Connecting to an FTP Server listening to a modified port
PRODUCT: 4D Internet Commands | VERSION: 2004.2 | PLATFORM: Mac & Win
Published On: August 6, 2005

If your FTP Server has been modified to listen to a different port other than port 21, you can use the command IT_SetPort to direct communicaton to that port when using 4D Internet Command’s FTP commands. Before making an FTP connection, you just need to provide the protocol number and the port number as parameters to the said command as shown below:

$err:=IT_SetPort(1;2100) ` FTP protocol = 1 and Port # is 2100

$err:= FTP_Login("ftp.4d.com";"anonymous";"dbody@aol.com";vFTP_ID;vFTP_Msg)

......