I am using Windows command line to ftp a file. I was able to do it successfully one time, and every time since then doesn't work. I'm not sure what I changed.
After running the put file_name.txt command from within ftp I wait for ~ 3 minutes and I get the following error message:
425 Could not open data connection to port XXXXX: Connection timed out
The server does actually have the file but it is 0 bytes long.
I disabled firewall and I tried
quote pasv after doing some searching around the web for this error.
ftp <myhost>.com Connected to <myhost>.com. 220---------- Welcome to Pure-FTPd [privsep] [TLS] ---------- 220-You are user number 9 of 500 allowed. 220-Local time is now 12:30. Server port: 21. 220-This is a private system - No anonymous login 220 You will be disconnected after 3 minutes of inactivity. User (<myhost>.com:(none)): <myusername> 331 User <myusername> OK. Password required Password: 230 OK. Current restricted directory is / ftp> cd ftpTest 250 OK. Current directory is /ftpTest ftp> quote pasv 227 Entering Passive Mode (97,74,182,128,196,125) ftp> put test.txt 200 PORT command successful 425 Could not open data connection to port 41084: Connection timed out ftp>
NOTE: I'm on Windows 8