Page 1 of 1

Synchronization Failed

Posted: September 6th, 2016, 9:13 am
by munirmdee1
Hi everyone,

I have a problem here, I developed an Android data entry application using CEntry. It works fine, but when I send data to my ftp server, it displaying an error message saying:

Synchronization error:
Error logging to the server ftp://154.118.226.21/
failed to connect to /154.118.226.21 (port 21) after 10000ms
.
Can someone help me with the above error? what is the reason for that error and how to solve it?

Thanks

Re: Synchronization Failed

Posted: September 8th, 2016, 12:43 am
by josh
The error means that CSPro could not establish a connection to your FTP server. It could be that the URL is incorrect. It could be that there is a problem with the network connection of your tablet. Could also be an issue with the firewall settings on your FTP server. I would make sure that you can connect using the same URL, username, password using an FTP client (for example FileZilla).

Re: Synchronization Failed

Posted: September 8th, 2016, 4:34 am
by munirmdee1
Hi Josh,
Actually I used WinSCP to connect to the server, it connected successful, and I could transfer files from and to. I put Server IP Address 154.118.226.21, username and password the same im using in CSEntry android application PNC file:

.PNC file:-

[SyncFile]
Version=CSPro 6.3
AppName=THIS

[Connection]
Type=FTP
Host=ftp://154.118.226.21/
Username="username hiden"
Password="password hiden"

[Sync]
CreateServerPath=/%AppName%/Data
CreateServerPath=/%AppName%/Data/Arrived
ServerPath=/%AppName%/Data/Arrived

ClientPath=/Data

Put=*.*

In WinSCP it connects as I mentioned above. Can you check that PNC file syntax logic above maybe you can find whats wrong, I just hide username and password?

Re: Synchronization Failed

Posted: September 8th, 2016, 5:18 am
by munirmdee1
I tried also with FileZilla in my PC, in FileZilla it fails to connect only if I put port 21 which also in my tablet it complains about port 21. But if I put port number 22 in FileZilla it connects successful.
So I think in Android the problem is Port number 21 as it complains about port 21. Now how to change port number in CSEntry Syncronization? Refer to the image below:
Screenshot_2016-09-06-16-07-37.png

Re: Synchronization Failed

Posted: September 8th, 2016, 3:11 pm
by Gregory Martin
Here is information on how to specify the port in a FTP address: https://www.cs.tut.fi/~jkorpela/ftpurl.html

So try: ftp://154.118.226.21:22/