> Does the same IP address get sent in the PASV response sent by the server re GPRS and active sync?
I cannot say that because when I use GPRS I do not get that far. Here is my log (I skiped the boring parts and manually changed the ip):
DEBUG [ExFTPClient] 9 Jan 1980 21:38:36.000 : Connecting to 111.111.111.111:21
DEBUG [FTPControlSocket] 9 Jan 1980 21:38:38.000 : Setting socket timeout=120000
DEBUG [ExFTPControlSocket] 9 Jan 1980 21:38:38.000 : Created control-socket: SocksContext=, ProxySettings=NoProxy, RemoteHost=111.111.111.1, controlPort=21, timeout=120000
DEBUG [FTPControlSocket] 9 Jan 1980 21:38:38.000 : StrictReturnCodes=False
DEBUG [FTPControlSocket] 9 Jan 1980 21:38:39.000 : 220 "Welcome to 111 FTP service."
DEBUG [FTPConnection] 9 Jan 1980 21:38:39.000 : Connected to 111.111.111.111
DEBUG [FTPControlSocket] 9 Jan 1980 21:38:39.000 : ---> USER user
DEBUG [EnterpriseDT.Net.Ftp.ExFTPConnection] 9 Jan 1980 21:38:39.000 : Starting KeepAlive thread with period 30s
DEBUG [FTPControlSocket] 9 Jan 1980 21:38:40.000 : 331 Please specify the password.
DEBUG [FTPControlSocket] 9 Jan 1980 21:38:40.000 : ---> PASS ********
DEBUG [FTPControlSocket] 9 Jan 1980 21:38:41.000 : 230 Login successful. Have fun.
DEBUG [FTPConnection] 9 Jan 1980 21:38:41.000 : Successfully logged in
DEBUG [FTPControlSocket] 9 Jan 1980 21:38:41.000 : ---> TYPE I
DEBUG [FTPControlSocket] 9 Jan 1980 21:38:42.000 : 200 Switching to Binary mode.
DEBUG [FTPControlSocket] 9 Jan 1980 21:38:42.000 : ---> PWD
DEBUG [FTPControlSocket] 9 Jan 1980 21:38:42.000 : 257 "/"
DEBUG [FTPControlSocket] 9 Jan 1980 21:38:42.000 : ---> SYST
DEBUG [FTPControlSocket] 9 Jan 1980 21:38:43.000 : 215 UNIX Type: L8
DEBUG [FTPFileFactory] 9 Jan 1980 21:38:43.000 : Selected UNIX parser
DEBUG [FTPControlSocket] 9 Jan 1980 21:38:43.000 : ---> PWD
DEBUG [FTPControlSocket] 9 Jan 1980 21:38:44.000 : 257 "/"
DEBUG [FTPControlSocket] 9 Jan 1980 21:38:44.000 : ---> PASV
ERROR [FTPControlSocket] 9 Jan 1980 21:38:49.000 : Exception in SendCommand : System.IO.IOException: Unable to read data from the transport connection.
System.IO.IOException: Unable to read data from the transport connection.
CAUSED BY:
System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
ERROR [EnterpriseDT.Net.Ftp.ExFTPConnection] 9 Jan 1980 21:38:49.000 : Command error : System.IO.IOException: Unable to read data from the transport connection.
As you can see I do not even get the answer from the server. When I use ActiveSync though I get the expected response to my PASV command and everything works as intended.
> If you have another FTP client on your device, see if it has the same problem.
I used the IPWorks library as well which can connect to the same server via GPRS. But it has it