425 Can't Open Data Connection

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

Moderator: Project members

Message
Author
mossy
500 Command not understood
Posts: 1
Joined: 2017-02-24 05:30
First name: Stephen
Last name: Moss

Re: 425 Can't Open Data Connection

#31 Post by mossy » 2017-02-24 05:35

Oh boy, boco is right, I ran thru the entire thread just to realize.... Don't use Windows FTP.exe. Most modern servers setup with mild security will block it's outdated methods.

Thanks guys.

mossy

taz1004
500 Command not understood
Posts: 1
Joined: 2017-05-22 20:26
First name: Brian
Last name: Choi

Re: 425 Can't Open Data Connection

#32 Post by taz1004 » 2017-05-22 20:34

Something is wacky. I just replaced my FTP server and copied the setting exactly and started getting this error. And I checked that everything on this thread and I was still getting the error. So I decided to turn off FTP over TLS by checking off Enable FTP over TLS support. And checked off Use custom port range in Passive mode settings. And External Server IP to Default. And it worked.
And then just to see which setting was causing the issue, I turned them back on one by one. First the FTP over TLS. It worked. Next, checked on Use custom port range. It worked again. Set external IP address back to what it was. Still working. So in the end, I just went back to how it was when it wasn't working. And now it works.

Don't understand this at all but just posting here as something else to try for those still having issue.

EDIT: Never mind, it stopped working again. Changing settings don't take effect immediately? It is definitely FTP over TLS causing this issue for me. I set everything that is suggested here. Maybe it's Windows 10 creators update?

User avatar
botg
Site Admin
Posts: 35507
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: 425 Can't Open Data Connection

#33 Post by botg » 2017-05-23 08:43

If it works without FTP over TLS but fails with it enabled you have a malicious firewall or NAT router tampering with the connection.

noelsantoro
500 Command not understood
Posts: 2
Joined: 2017-05-23 08:19

Re: 425 Can't Open Data Connection

#34 Post by noelsantoro » 2017-05-23 08:44

I've my FTP server on VM and I use pfsense firewall.

I can connect on my LAN Network but I can't outside.

I've tested with ftptest.net , and this is teh result :

....
Command: PBSZ 0
Reply: 200 PBSZ=0
Command: PROT P
Reply: 200 Protection level set to P
Command: PWD
Reply: 257 "/" is current directory.
Status: Current path is /
Command: TYPE I
Reply: 200 Type set to I
Command: PASV
Reply: 227 Entering Passive Mode (79,7,120,125,197,84)
Command: MLSD
Reply: 425 Can't open data connection for transfer of "/"
Error: Listing failed


so,.. I've set the passive port to 50000/51000
and 256*197+84 = 50516

I've set into firewall Rules and NAT :

WAN server adress 21 (FTP) FTP Service
WAN server adress 50000 - 51000 FTP Passive Mode
IPv4 TCP server adress 21 (FTP)
IPv4 TCP server adress 50000 - 51000

and also into Router Gateway I've set the Port Mapping TCP port 21

Any help , please ..

User avatar
botg
Site Admin
Posts: 35507
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: 425 Can't Open Data Connection

#35 Post by botg » 2017-05-23 09:28

What about the mapping for ports 50000 through 51000 in the gateway router?

noelsantoro
500 Command not understood
Posts: 2
Joined: 2017-05-23 08:19

Re: 425 Can't Open Data Connection

#36 Post by noelsantoro » 2017-05-23 09:50

I've tryed to mapping the port 50000/51000 on the Router Gateway setting ..
without change..

ElfoRojo
500 Command not understood
Posts: 1
Joined: 2018-05-16 16:59
First name: Jhon
Last name: Bedoya

Re: 425 Can't Open Data Connection

#37 Post by ElfoRojo » 2018-05-16 17:05

Hi all, am having this error trough a VPN Connection whit NAT, if i connect from the public IP (static) work fine, if i connect from internal IP works fine,
but when the people try to connect from a VPN whit NAT get the error 425 Can't Open Data Connection

the passive ports are open on both firewalls , the connection trough the 2222 port FTPS works but cant retrive the directories.

what can we do to solve this!

Tariq3Khan
500 Command not understood
Posts: 1
Joined: 2018-11-16 18:08
First name: Tariq
Last name: Khan

Re: 425 Can't Open Data Connection

#38 Post by Tariq3Khan » 2018-11-16 18:11

I have found this to work =

Allow 50025 - 50050 - on your router. Forward to the FTP Server

From within the FTP Server Application - Under Passive Setting, allow these same ports.

This is not from me. I got this from an earlier poster in this same thread. It worked.

Thanks,
Tariq Khan

somebody08
450 Internal Error
Posts: 36
Joined: 2014-07-02 03:29
First name: A
Last name: T

Re: 425 Can't Open Data Connection

#39 Post by somebody08 » 2019-02-13 22:21

The solution for me, was that my IP address had changed, and I didn't update it under

Settings > Passive mode settings

Use the following IP address: XXX.XXX.XXX.XXX

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

Re: 425 Can't Open Data Connection

#40 Post by boco » 2019-02-14 06:42

You can use the Retrieve option to have it updated automatically. Or, you can enter a DNS/Hostname into the IP field to have the IP resolved.
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

Sakharov
500 Command not understood
Posts: 1
Joined: 2019-11-30 18:35

Re: 425 Can't Open Data Connection

#41 Post by Sakharov » 2019-11-30 18:47

Hi.
I Have resolve the problem for me that was my router.
I can't redirect range of port in NAT Configuration.
I have redirected ports one by one(Only 5 times) and that's resolve the "425 Error".
Good luck.

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

Re: 425 Can't Open Data Connection

#42 Post by boco » 2019-11-30 23:40

What a crappy device. FTP will not get very far with 5 data ports.
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

Stuperfied
504 Command not implemented
Posts: 10
Joined: 2016-07-05 14:52
First name: Michael
Last name: Hurt

Re: 425 Can't Open Data Connection

#43 Post by Stuperfied » 2020-04-07 11:35

In the server I checked that the firewall is off and set it to use port 21 with passive mode ports 14130-14136. I then opened that range in the router along with 2022 external - 21 internal. I can connect to the server locally and other staff can also however one of my staff reported being offered port 52806 which is 206*256+70.

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

Re: 425 Can't Open Data Connection

#44 Post by boco » 2020-04-08 11:21

In the server I checked that the firewall is off and set it to use port 21 with passive mode ports 14130-14136.
How far will you get with only 7 data ports? Hint: Not very far.
I then opened that range in the router along with 2022 external - 21 internal.
Something is very wrong here. Never do port remapping, it will not work right for FTP. Forward 21 external to 21 internal, or 2022 to 2022. Likewise, forward the data ports to their identical internal counterparts.
[...] one of my staff reported being offered port 52806 which is 206*256+70.
You are using non-encrypted FTP? Then, everything is transmitted in plain text, including passwords. Each and every hard- and software along the way can read and modify everything. Looks like either on your or on his/her side, something tries to act "smart" and tampers with the traffics. Solution? Use FTP over TLS.
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

VOIP_TECH
500 Command not understood
Posts: 1
Joined: 2020-06-30 23:44
First name: Haikaz
Last name: Dermenjian

Re: 425 Can't Open Data Connection

#45 Post by VOIP_TECH » 2020-06-30 23:48

I know this thread is a bit old but wanted to give my fix for this.


After reading all these pages and many more I did all that were suggested but nothing work. As they say sometimes it's the small things that we miss that actually work. So I disabled my firewall on the server side and sure enough the error is gone. So after that all I had to do was create new incoming rule for FileZilla select the app and allow all (I know this is not recommended).

So my suggestion before going crazy and changing any major settings or hardware firewall rules ect is disable the main server Filzilla windows firewall first and test it. If you can connect then boom you have the same issue as me create a new rule enable firewall and your'e done.


Hope this helps!

Post Reply