filezilla - FTP error 425 Can't open data connection

27
2013-11
  • ben75

    Here is my setup:

    • windows 7
    • filezilla server installed on my local PC
    • filezilla client installed on my local PC
    • firewall disabled (just during the test)

    Server and Client seems to work fine (I can connect and browse files with the client as expected).

    I try to run the following commands

    PASV
    RETR /fileSource.txt
    

    (/fileSource.txt exists on the server)

    Here is the output (server side)

    (000038)18/03/2013 12:56:34 - andro (127.0.0.1)> PASV
    (000038)18/03/2013 12:56:34 - andro (127.0.0.1)> 227 Entering Passive Mode (127,0,0,1,231,249)
    (000038)18/03/2013 12:56:39 - andro (127.0.0.1)> RETR /fileSource.txt
    (000038)18/03/2013 12:56:44 - andro (127.0.0.1)> 425 Can't open data connection.
    

    So my problem if of course this error 425 Can't open data connection

    Googling around leads me to disabling firewall (to be sure it wasn't the cause) without success.

    Other common issue related is ACTIVE/PASSIVE mode. As far as I understand: PASV will tell the server to switch to passive mode. (note that if I don't run PASV, I have the following error : 503 Bad sequence of commands... and it seems OK since RETR requires the passive mode. Is it correct ?)

    Any idea what can be wrong ?

    Note: I run in exact same issue when I do those calls from my android device (on the same LAN), so I guess this is something wrong on the server side

  • Answers
    Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

    Related Question

    windows 7 - Can't connect to FTP sites
  • Javier Badia

    This started happening when I installed Windows 7. I've tried with Filezilla and with the FireFTP Firefox plugin, and I could never connect. Filezilla gave the error message "ECONNREFUSED - Connection refused by server". I tried disabling the Windows Firewall, but no luck. Any ideas on what might be causing this?

    I just discovered that I can connect with web services like net2ftp, but not with FTP clients.


  • Related Answers
  • Rodnower

    Check whether

    netstat -na
    

    show you some SYN in line with IP of FTP site. Try to disable all port blocking on router (try to reset settings if you may to restore them after that)
    Try to use ftp cmd command and print here all your interaction with the command.
    I guess that this already not relevant, because it was 5 mounth ago, so why this question still open?

  • MrStatic

    Connection refused by server means exactly that. The server said NO to your attempt. So something else has changed as well. Double check your username and passwords. As well as if the ftp server you are attempting to connect to uses an abnormal port.

  • ChrisF

    Is port 21 (the default port for FTP) or Filezilla itself blocked by the Windows 7 firewall?

    With XP the firewall was only on incoming connections so you needed a separate program to monitor outgoing attempts. I think it was changed with Vista, but certainly by Windows 7 the firewall is monitoring both incoming and outgoing connections.

    So double check the settings to make sure that a) Filezilla is allowed to make outgoing connections, b) port 21 is open.

    Using a different FTP client might help confirm this. If that's blocked then is the OS/firewall. If not then it's Filezilla itself.