425 Can't open data connection for transfer of "/", but ftptest.net can

Need help with FileZilla Server? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
sbondo1234
500 Command not understood
Posts: 3
Joined: 2019-06-30 12:58

425 Can't open data connection for transfer of "/", but ftptest.net can

#1 Post by sbondo1234 » 2019-07-02 13:51

I have set up an FTP server on a pc on the same local network as the one I am using to connect to it.

Whenever I try to connect to it, i get this error:

Response: 425 Can't open data connection for transfer of "/"
Error: Failed to retrieve directory listing


When I test the server on https://ftptest.net/ I get a valid connection and it is able to list everything in the home dir. It has two errors, but I don't think they are to worry about:

Warning: Selected port (800) is not the default port (21) of the selected protocol.
Warning: The entered address does not resolve to an IPv6 address.


I have forwarded the ports (listen port & passive port range) and also allowed them in my firewall (I have also tried allowing the server in the firewall). It's a bit confusing, because in the logs for the FileZilla Server, I see the errors when I try to connect myself, but then also see the successful connection of ftptest.net.

Custom port range: 55000-56000
listen port: 800


Error (when i try to connect):

Code: Select all

(000010) 02/07/2019 14:43:31 - (not logged in) (77.102.x.x)> Connected on port 800, sending welcome message...
(000010) 02/07/2019 14:43:31 - (not logged in) (77.102.x.x)> AUTH TLS
(000010) 02/07/2019 14:43:31 - (not logged in) (77.102.x.x)> 234 Using authentication type TLS
(000010) 02/07/2019 14:43:32 - (not logged in) (77.102.x.x)> TLS connection established
(000010) 02/07/2019 14:43:32 - (not logged in) (77.102.x.x)> USER test
(000010) 02/07/2019 14:43:32 - (not logged in) (77.102.x.x)> 331 Password required for test
(000010) 02/07/2019 14:43:32 - (not logged in) (77.102.x.x)> PASS ****
(000010) 02/07/2019 14:43:32 - test (77.102.x.x)> 230 Logged on
(000010) 02/07/2019 14:43:32 - test (77.102.x.x)> PBSZ 0
(000010) 02/07/2019 14:43:32 - test (77.102.x.x)> 200 PBSZ=0
(000010) 02/07/2019 14:43:32 - test (77.102.x.x)> PROT P
(000010) 02/07/2019 14:43:32 - test (77.102.x.x)> 200 Protection level set to P
(000010) 02/07/2019 14:43:32 - test (77.102.x.x)> PWD
(000010) 02/07/2019 14:43:32 - test (77.102.x.x)> 257 "/" is current directory.
(000010) 02/07/2019 14:43:32 - test (77.102.x.x)> TYPE I
(000010) 02/07/2019 14:43:32 - test (77.102.x.x)> 200 Type set to I
(000010) 02/07/2019 14:43:32 - test (77.102.x.x)> PASV
(000010) 02/07/2019 14:43:32 - test (77.102.x.x)> 227 Entering Passive Mode (77,102,x,x,218,100)
(000010) 02/07/2019 14:43:32 - test (77.102.x.x)> MLSD
(000010) 02/07/2019 14:43:42 - test (77.102.x.x)> 425 Can't open data connection for transfer of "/"
Success (ftptest.net):

Code: Select all

(000011) 02/07/2019 14:45:01 - (not logged in) (136.243.154.86)> Connected on port 800, sending welcome message...
(000011) 02/07/2019 14:45:01 - (not logged in) (136.243.154.86)> CLNT https://ftptest.net on behalf of 77.102.x.x
(000011) 02/07/2019 14:45:01 - (not logged in) (136.243.154.86)> 200 Don't care
(000011) 02/07/2019 14:45:01 - (not logged in) (136.243.154.86)> AUTH TLS
(000011) 02/07/2019 14:45:01 - (not logged in) (136.243.154.86)> 234 Using authentication type TLS
(000011) 02/07/2019 14:45:01 - (not logged in) (136.243.154.86)> TLS connection established
(000011) 02/07/2019 14:45:02 - (not logged in) (136.243.154.86)> USER test
(000011) 02/07/2019 14:45:02 - (not logged in) (136.243.154.86)> 331 Password required for test
(000011) 02/07/2019 14:45:02 - (not logged in) (136.243.154.86)> PASS ****
(000011) 02/07/2019 14:45:02 - test (136.243.154.86)> 230 Logged on
(000011) 02/07/2019 14:45:02 - test (136.243.154.86)> SYST
(000011) 02/07/2019 14:45:02 - test (136.243.154.86)> 215 UNIX emulated by FileZilla
(000011) 02/07/2019 14:45:02 - test (136.243.154.86)> FEAT
(000011) 02/07/2019 14:45:02 - test (136.243.154.86)> 211-Features:
(000011) 02/07/2019 14:45:02 - test (136.243.154.86)>  MDTM
(000011) 02/07/2019 14:45:02 - test (136.243.154.86)>  REST STREAM
(000011) 02/07/2019 14:45:02 - test (136.243.154.86)>  SIZE
(000011) 02/07/2019 14:45:02 - test (136.243.154.86)>  MLST type*;size*;modify*;
(000011) 02/07/2019 14:45:02 - test (136.243.154.86)>  MLSD
(000011) 02/07/2019 14:45:02 - test (136.243.154.86)>  AUTH SSL
(000011) 02/07/2019 14:45:02 - test (136.243.154.86)>  AUTH TLS
(000011) 02/07/2019 14:45:02 - test (136.243.154.86)>  PROT
(000011) 02/07/2019 14:45:02 - test (136.243.154.86)>  PBSZ
(000011) 02/07/2019 14:45:02 - test (136.243.154.86)>  UTF8
(000011) 02/07/2019 14:45:02 - test (136.243.154.86)>  CLNT
(000011) 02/07/2019 14:45:02 - test (136.243.154.86)>  MFMT
(000011) 02/07/2019 14:45:02 - test (136.243.154.86)>  EPSV
(000011) 02/07/2019 14:45:02 - test (136.243.154.86)>  EPRT
(000011) 02/07/2019 14:45:02 - test (136.243.154.86)> 211 End
(000011) 02/07/2019 14:45:02 - test (136.243.154.86)> PBSZ 0
(000011) 02/07/2019 14:45:02 - test (136.243.154.86)> 200 PBSZ=0
(000011) 02/07/2019 14:45:02 - test (136.243.154.86)> PROT P
(000011) 02/07/2019 14:45:02 - test (136.243.154.86)> 200 Protection level set to P
(000011) 02/07/2019 14:45:02 - test (136.243.154.86)> PWD
(000011) 02/07/2019 14:45:02 - test (136.243.154.86)> 257 "/" is current directory.
(000011) 02/07/2019 14:45:02 - test (136.243.154.86)> TYPE I
(000011) 02/07/2019 14:45:02 - test (136.243.154.86)> 200 Type set to I
(000011) 02/07/2019 14:45:02 - test (136.243.154.86)> PASV
(000011) 02/07/2019 14:45:02 - test (136.243.154.86)> 227 Entering Passive Mode (77,102,x,x,216,250)
(000011) 02/07/2019 14:45:03 - test (136.243.154.86)> TLS connection for data connection established
(000011) 02/07/2019 14:45:03 - test (136.243.154.86)> MLSD
(000011) 02/07/2019 14:45:03 - test (136.243.154.86)> 150 Opening data channel for directory listing of "/"
(000011) 02/07/2019 14:45:03 - test (136.243.154.86)> 226 Successfully transferred "/"
(000011) 02/07/2019 14:45:03 - test (136.243.154.86)> disconnected.
UPDATE:
I downloaded FileZilla Client on the same PC the FTP server is being hosted on and was able to connect to the server successfully using 'localhost' to connect.
Still can't get it to work on my other PC on the same network (I have tried using the host pcs local ip).
Last edited by sbondo1234 on 2019-07-03 12:42, edited 1 time in total.

User avatar
boco
Contributor
Posts: 26913
Joined: 2006-05-01 03:28
Location: Germany

Re: 425 Can't open data connection for transfer of "/", but ftptest.net can

#2 Post by boco » 2019-07-02 16:21

In the same network as the server, you must use the private IPv4 to connect. The public IPv4 will not work correctly as it is invalid inside the LAN (from a different network segment). Most FTP server software will detect local connections and act accordingly.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

sbondo1234
500 Command not understood
Posts: 3
Joined: 2019-06-30 12:58

Re: 425 Can't open data connection for transfer of "/", but ftptest.net can

#3 Post by sbondo1234 » 2019-07-03 00:38

boco wrote:
2019-07-02 16:21
In the same network as the server, you must use the private IPv4 to connect. The public IPv4 will not work correctly as it is invalid inside the LAN (from a different network segment). Most FTP server software will detect local connections and act accordingly.
I just tried connecting to the server with its local ipv4 and I'm getting the same error.

it's ipv4: 192.168.0.42

User avatar
boco
Contributor
Posts: 26913
Joined: 2006-05-01 03:28
Location: Germany

Re: 425 Can't open data connection for transfer of "/", but ftptest.net can

#4 Post by boco » 2019-07-03 11:50

In that case, you need to check the firewall on the server machine. Are data ports open for all connecting IPs?

You also need to check the FTP server software, it must return its private IPv4 for PASV replies if the incoming connection is from inside the LAN. And it must return the router public IPv4 if the incoming connection is from the "outside".
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

sbondo1234
500 Command not understood
Posts: 3
Joined: 2019-06-30 12:58

Re: 425 Can't open data connection for transfer of "/", but ftptest.net can

#5 Post by sbondo1234 » 2019-07-03 12:45

boco wrote:
2019-07-03 11:50
In that case, you need to check the firewall on the server machine. Are data ports open for all connecting IPs?

You also need to check the FTP server software, it must return its private IPv4 for PASV replies if the incoming connection is from inside the LAN. And it must return the router public IPv4 if the incoming connection is from the "outside".
My server was changing the local ip to the public ip.
Thanks for the help :)

Post Reply