I've been trying to figure this out for a few days now. Back in 2010ish I had FileZilla running and used it in college. I recall it being fairly easy to set up. Not so much this time. Hoping one of you can help.
When using the FTP tester, I keep getting the error:" Error: Could not establish data connection: Connection refused".
I feel like I'm so close. I can get the welcome message, I can log in, it just won't do the final connection.
Steps/troubleshooting:
1. Read FAQ and network setup guide. Searched the forums and tried many suggestions that were posted. No dice.
2. Custom port range 49152-65534. Entered my public IP address.
3. Added port forwarding in router. Disabled all firewall options in router. Note that in my TPlink router, "virtual server" = port forwarding.
4. Added firewall exemptions to Windows firewall. Tried specific ports at first, then changed to all ports.
5. Changed from port 21 to port 22.
6. Tried explicit FTP over TLS as well as insecure plain FTP.
7. Disabled windows firewall.
Interesting note - I set the port range in the router to 49152-65534 and I get an immediate "connection refused error" when using ftptest.net.
If I open the port range in the router to 1-65535, it will proceed until "Error: Could not establish data connection: Connection refused".
I've tried changing numerous settings within Windows and the router. Not sure what else I can do to resolve this. Any help would be GREATLY appreciated. Thank you!!
Code: Select all
Status: Resolving address of XX.XXX.XX.XX
Status: Connecting to XX.XXX.XX.XX
Warning: The entered address does not resolve to an IPv6 address.
Status: Connected, waiting for welcome message...
Reply: 220-FileZilla Server 1.7.3
Reply: 220-Please visit https://filezilla-project.org/
Reply: 220 Let's see if I can read this...
Command: CLNT https://ftptest.net on behalf of XX.XXX.XX.XX
Reply: 200 Don't care.
Command: AUTH TLS
Reply: 234 Using authentication type TLS.
Status: Performing TLS handshake...
Status: TLS handshake successful, verifying certificate...
Status: Received 1 certificates from server.
Status: cert[0]: subject='CN=filezilla-server self signed certificate' issuer='CN=filezilla-server self signed certificate'
Command: USER guest
Reply: 331 Please, specify the password.
Command: PASS **********************
Reply: 230 Login successful.
Command: SYST
Reply: 215 UNIX emulated by FileZilla.
Command: FEAT
Reply: 211-Features:
Reply: MDTM
Reply: REST STREAM
Reply: SIZE
Reply: MLST type*;size*;modify*;perm*;
Reply: MLSD
Reply: AUTH SSL
Reply: AUTH TLS
Reply: PROT
Reply: PBSZ
Reply: UTF8
Reply: TVFS
Reply: EPSV
Reply: EPRT
Reply: MFMT
Reply: 211 End
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 (XX,XXX,XX,XX,251,220)
Command: MLSD
Error: Could not establish data connection: Connection refused
Here's what I see in the log:
Code: Select all
2023-10-10T18:39:20.468Z << [FTP Session 213 49.12.121.47] 220-FileZilla Server 1.7.3
2023-10-10T18:39:20.468Z << [FTP Session 213 49.12.121.47] 220-Please visit https://filezilla-project.org/
2023-10-10T18:39:20.468Z << [FTP Session 213 49.12.121.47] 220 Let's see if I can read this...
2023-10-10T18:39:20.830Z >> [FTP Session 213 49.12.121.47] CLNT https://ftptest.net on behalf of xx.xx.xx.xx
2023-10-10T18:39:20.830Z << [FTP Session 213 49.12.121.47] 200 Don't care.
2023-10-10T18:39:21.199Z >> [FTP Session 213 49.12.121.47] AUTH TLS
2023-10-10T18:39:21.200Z << [FTP Session 213 49.12.121.47] 234 Using authentication type TLS.
2023-10-10T18:39:21.723Z >> [FTP Session 213 49.12.121.47] USER guest
2023-10-10T18:39:21.723Z << [FTP Session 213 49.12.121.47] 331 Please, specify the password.
2023-10-10T18:39:22.222Z >> [FTP Session 213 49.12.121.47] PASS ****
2023-10-10T18:39:22.222Z << [FTP Session 213 49.12.121.47 guest] 230 Login successful.
2023-10-10T18:39:22.587Z >> [FTP Session 213 49.12.121.47 guest] SYST
2023-10-10T18:39:22.587Z << [FTP Session 213 49.12.121.47 guest] 215 UNIX emulated by FileZilla.
2023-10-10T18:39:22.959Z >> [FTP Session 213 49.12.121.47 guest] FEAT
2023-10-10T18:39:22.959Z << [FTP Session 213 49.12.121.47 guest] 211-Features:
2023-10-10T18:39:22.959Z << [FTP Session 213 49.12.121.47 guest] 211 End
2023-10-10T18:39:23.329Z >> [FTP Session 213 49.12.121.47 guest] PBSZ 0
2023-10-10T18:39:23.329Z << [FTP Session 213 49.12.121.47 guest] 200 PBSZ=0
2023-10-10T18:39:23.699Z >> [FTP Session 213 49.12.121.47 guest] PROT P
2023-10-10T18:39:23.699Z << [FTP Session 213 49.12.121.47 guest] 200 Protection level set to P
2023-10-10T18:39:24.066Z >> [FTP Session 213 49.12.121.47 guest] PWD
2023-10-10T18:39:24.066Z << [FTP Session 213 49.12.121.47 guest] 257 "/" is current directory.
2023-10-10T18:39:24.436Z >> [FTP Session 213 49.12.121.47 guest] TYPE I
2023-10-10T18:39:24.436Z << [FTP Session 213 49.12.121.47 guest] 200 Type set to I
2023-10-10T18:39:24.804Z >> [FTP Session 213 49.12.121.47 guest] PASV
2023-10-10T18:39:24.804Z << [FTP Session 213 49.12.121.47 guest] 227 Entering Passive Mode (XX,XXX,XX,XX,239,216)
2023-10-10T18:39:25.121Z !! [FTP Session 213 49.12.121.47 guest] GnuTLS error -110 in gnutls_record_recv: The TLS connection was non-properly terminated.
2023-10-10T18:39:25.121Z == [FTP Session 213 49.12.121.47 guest] Client did not properly shut down TLS connection
2023-10-10T18:39:25.121Z >> [FTP Session 213 49.12.121.47 guest] MLSD
2023-10-10T18:39:25.122Z !! [FTP Session 213 49.12.121.47 guest] Control channel closed with error from source 0. Reason: ECONNABORTED - Connection aborted.