Author Topic: FTP connection to AirDisk Pro fails  (Read 12599 times)

FleetCommand

  • Newbie
  • *
  • Posts: 2
    • View Profile
FTP connection to AirDisk Pro fails
« on: May 18, 2016, 09:04:46 »
Hi.

I am having problem with using FTP in MultiCommander. I have an iOS FTP server called AirDisk Pro. Internet Explorer, Firefox, Chrome, File Explorer and FireFTP successfully connect to it. But when I attempt to connect with MultiCommander, the connection fails. Here is the log:
Code: newbielink:javascript:void(0); [nonactive]
2016-05-18 10:49:44 = Connection to site : 192.168.1.40 on port 21
2016-05-18 10:49:44 < 220 iosFtp server ready.
2016-05-18 10:49:44 > USER anonymous
2016-05-18 10:49:44 < 331 Password required for anonymous
2016-05-18 10:49:44 > PASS (hidden)
2016-05-18 10:49:44 < 230 User anonymous logged in.
2016-05-18 10:49:44 > SYST
2016-05-18 10:49:44 < 215 UNIX Type: L8 Version: iosFtp 20080912
2016-05-18 10:49:44 > FEAT
2016-05-18 10:49:44 < 211-Features supported
2016-05-18 10:49:44 < 211 End
2016-05-18 10:49:44 > TYPE A
2016-05-18 10:49:44 < 200 Type set to  A.
2016-05-18 10:49:44 > MODE S
2016-05-18 10:49:44 < 500 'MODE': command not understood.
2016-05-18 10:49:44 > STRU F
2016-05-18 10:49:44 < 500 'STRU': command not understood.
2016-05-18 10:49:44 > CWD /
2016-05-18 10:49:44 < 550 CWD failed.
2016-05-18 10:49:44 = Server request denied

Here is a FireFTP log of a successful connection:
Code: newbielink:javascript:void(0); [nonactive]
220 iosFtp server ready.
       USER anonymous
331 Password required for anonymous
       PASS (password not shown)
230 User anonymous logged in.
       FEAT
211-Features supported
211 End
       PWD
257 "/private/var/mobile/Containers/Data/Application/266A2DD9-F632-47F6-B781-0F3F3BA4E837/Documents" is the current directory.
       TYPE A
200 Type set to A.
       PASV
227 Entering Passive Mode (192,168,1,40,203,212)
       LIST
150 Opening ASCII mode data connection for '/bin/ls'.
226 Transfer complete.

Thanks in advance
« Last Edit: May 18, 2016, 09:08:00 by FleetCommand »

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4426
    • View Profile
    • Multi Commander
Re: FTP connection to AirDisk Pro fails
« Reply #1 on: May 19, 2016, 07:24:54 »
Looks like it does not support many the standard FTP Commands that are sent.

Problem is that many FTP servers do not follow the spec completely and FTP Clients need to add workarounds for different behaviour and often also special workarounds for some FTP Servers.
MC support the most common ftp servers but the problem is that I do not have the resource and time to support them all.
Also I do not have an AirDiskPro or a Mac so I can't easly add support for it either

So, Sorry. It seems MC is not compatible with AirDiskPro.

FleetCommand

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: FTP connection to AirDisk Pro fails
« Reply #2 on: May 19, 2016, 09:50:58 »
Thanks for the reply.

Actually, the cause of failure seems to be the mandatory "CWD /" command that MC sends. I don't have permission to access /. This is the case with many many FTP servers regardless of what FTP server software they use. (It is a deliberate security measure.) Perhaps if you consider removing this mandatory troublesome command? Say, go directly for PWD and then LIST instead.

A clarification: AirDisk Pro is an iPhone software, not Mac. And currently, it is free. (I am just saying this because iPhone is more popular than Mac...)