login about faq

I used Ftp2 to upload/download file in iphone/ipad app, and it ran well more than one year.

I guess tmobile upgrade the network. my app can work on ipad(tmobile 28.3), but can't work on iPhone(tmobile 28.4). I tried att/version, both are good. so the problem is tmobile 28.4, it is IPV6 issue?

please help.

asked Jul 06 '17 at 20:42

YeJ's gravatar image

YeJ
12


If using an old version of Chilkat, update to see if the latest version solves the problem.

link

answered Jul 06 '17 at 21:18

chilkat's gravatar image

chilkat ♦♦
12.8k318383533

applied the latest version, but issue is still there. it can work under wifi/att, but can't work under tmobile 28.4. you can try a simple sample in tmobile iphone(ios 10.3.2)

BOOL success; success = [ftp UnlockComponent: @"abcdef.XXXXXXX_00000XXXXXX"]; if (success != YES) { NSLog(@"%@",ftp.LastErrorText); return ret; }

ftp.Passive = YES;
ftp.Hostname = @"google.microsoft.facebook";
ftp.Username = @"pichai"; 
ftp.Password = @"iamstupid"; 
ftp.Port = [NSNumber numberWithInt:21];
//ftp.PreferIpv6 = YES;
//ftp.AuthTls = YES;
//ftp.Ssl = NO;
success = [ftp Connect];
if (success != YES) {
    NSLog(@"%@",ftp.LastErrorText);
    return ret;
}
else {
    NSLog(@"%@",ftp.LastErrorText);
}

[ftp GetFile: remoteFilename localPath: localFilename]; ...

link

answered Jul 07 '17 at 13:59

YeJ's gravatar image

YeJ
12

Does the Connect method call work OK, but then the call to GetFile fails? If so, then my guess is that it's a firewall or something security related blocking the FTP data connection. Try also setting the ftp.PassiveUseHostAddr property = YES.

link

answered Jul 08 '17 at 07:20

chilkat's gravatar image

chilkat ♦♦
12.8k318383533

I tried to set passiveusehostaddr property to yes, but same issue,ConnectFailReason = 7

> ftpConnect:
>       Hostname: abc.def.com
>       Port: 21
>       IdleTimeoutMs: 60000
>       socket2Connect:
>         connect2:
>           connectSocket:
>             connect_ipv6_or_ipv4:
>               socketErrno: 51
>               socketError: Network is unreachable
>             --connect_ipv6_or_ipv4
>           --connectSocket
>           ConnectFailReason: Connection rejected
>         --connect2
>       --socket2Connect
>       ConnectFailReason: 7
>     --ftpConnect
>     Failed to connect to FTP server.
>     Failed.   --Connect_Ftp2
> --ChilkatLog
link

answered Jul 10 '17 at 13:29

YeJ's gravatar image

YeJ
12

edited Jul 10 '17 at 13:37

if I set PreferIpv6 = yes. app can connect to ftp server, but call GetFile failed. BTW, we don't change any company network related setting recently.

          passive transfer mode
          setupPassiveDataSocket:
            sendCommand:
              sendingCommand: PASV
            --sendCommand
            readCommandResponse:
              replyLineQP: 229 Extended Passive Mode Entered (|||4816|)
            --readCommandResponse
            Malformed PASV reply (4)
            ReplyText: 229 EXTENDED PASSIVE MODE ENTERED (|||4816|)
          --setupPassiveDataSocket
          Failed to setup passive data socket for upload
        --setupDataConnection
        Failed to setup data connection for download.
        readRepliesAfterFailedDataConn:
          readCommandResponse:
            recvUntilMatch: Socket operation timeout.
            Failed to read FTP control channel reply.
            readFtpReply: Socket operation timeout.
          --readCommandResponse
        --readRepliesAfterFailedDataConn
      --downloadToOutput
      downloadToOutput: Elapsed time: 1320 millisec
    --downloadToFile
    Failed.
  --GetFile
--ChilkatLog
link

answered Jul 10 '17 at 13:46

YeJ's gravatar image

YeJ
12

I Googled "ios network is unreachable" and found this: https://forums.openvpn.net/viewtopic.php?t=22457

Specifically (from the web page linked above) "... I just got it working. Turns out it was the bad T-Mobile carrier settings. ..."

link

answered Jul 10 '17 at 15:42

chilkat's gravatar image

chilkat ♦♦
12.8k318383533

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×22

Asked: Jul 06 '17 at 20:42

Seen: 530 times

Last updated: Jul 10 '17 at 15:42

powered by OSQA