Script

FTP

The professional tool to automate FTP, SFTP, FTPS

and schedule FTP batch jobs

MENU MENU
Post here if you experience file transfer problems or unexpected errors.
Hi,
I'm using the V4 created today, but i have the following error:
LOCALCHDIR("\\fs02\...............................")
Current local directoy changed to \\fs02\......................\

SETPROTOCOL(FTPS_EXPLICIT_ENCRYPT_DATA)
Setting protocol to FTP over SSL (explicit with data channel encryption).
Setting TCP port to 21.

Connecting ......

OPENHOST("xx.x.xxx.xxx","aicube2012","********")
Connecting to xx.x.xxx.xxx
Connected

CWDIR()
Current remote directory is /

CHDIR("/\...........")
Current remote directory is now /\......../

Remote change dir successfully.

PUTFILE("xxxxxxxxxxxxxxxxxxxxx.xls")
Uploading..........\\fs02\.................\xxxxxxxxxxxxxxxxxxxxxxx.xls
****** PUTFILE Error #17227
****** A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 192.168.0.5:50067


Error putting files

An Error was found during put.

STOPLOG()
Sorry: i must use .......... and XXXXXXXX to mask the real name

Using filezilla all works fine.

Can you help me?


Best Regards
Hi,

I have just tested a similar script with SETPROTOCOL(FTPS_EXPLICIT_ENCRYPT_DATA) and PUTFILE and seems to work fine.

Could you try your script with SETPROTOCOL(FTPS_EXPLICIT) ? it is different from FTPS_EXPLICIT_ENCRYPT_DATA

If it still does not work please post your filezilla log (the text that goes on the top panel). You can of course delete or change any private information. File names, user names, passwords etc do not mind.

Thanks
Hi.
I tried but still wrong.
Following the log:
LOCALCHDIR("c:\temp")
Current local directoy changed to c:\temp\

SETPROTOCOL(FTPS_EXPLICIT)
Setting protocol to FTP over SSL (explicit).
Setting TCP port to 21.

Connecting ......

OPENHOST("xx.x.xxx.xxx","aicube2012","********")
Connecting to xx.x.xxx.xxx
Connected

CWDIR()
Current remote directory is /

CHDIR("/\PER INTERDIS")
Current remote directory is now /\PER INTERDIS/

Remote change dir successfully.

PUTFILE("test.xls")
Uploading..........c:\temp\test.xls
****** PUTFILE Error #17227
****** A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 192.168.0.5:50087


Error putting files

An Error was found during put.

STOPLOG()
Best Regards
Hi.
Following is the Filezilla log that works fine.
Best Regards
Attachments
filefilla ftps transfer log
(20.29 KiB) Downloaded 344 times
Hello Mauri,

Take a look at the following line from the filezilla log:
Response: 227 Entering Passive Mode (192,168,0,5,195,176)
Status: Server sent passive reply with unroutable address. Using server address instead.
Your FTP server is giving the client a private ip address (192,168.0.5) to connect and transfer the file. Filezilla is smart enough to use instead the public IP address you are connected to (xx.x.137.210). Unfortunately, ScriptFTP is not that smart (we will try to fix this issue).

You need to configure your FTP server to give its public IP address instead of the private one. Take a look at the following screenshot:
Attachments
filezilla_external_ip_address.jpg
filezilla_external_ip_address.jpg (129.58 KiB) Viewed 1403 times
Great: now all is working fine.
Please let me known when the V4 from beta becomes stable.

Thank you very much.