Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Command-line FTP function does not work

I am trying to copy file to a remote ftp account, but failed.

The same FTP file upload work in filezilla but not working in windows FTP command line.

The settings:

port: 21
transfer mode: active
type: plain ftp

I go to command line then

lcd "C:\testfolder"
open 21
user dummyuser
password dummypassword
cd "httpdocs/log"
prompt n
put "abc.txt" (hangs at put)

When it hang, the message show is: 150 Opening BINARY mode data connection for abc.txt

abc.txt is successfully created at remote ftp, but the file content is 0 byte.

It keep on hang there.

share|improve this question

migrated from Aug 23 '11 at 13:12

This question came from our site for professional and enthusiast programmers.

marked as duplicate by slhck Aug 4 '12 at 18:53

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Ok, found the fixes.

comment by Pants, saying add ftp.exe into windows firewall exception list do works.

share|improve this answer

Using Windows 7 I found that "File Transfer Program" was already in my "Inbound Rules" list in Windows Firewall (once for TCP and once for UDP), however it still wasn't working.

To make it work I needed to edit those rules and change "Profiles" (in Advanced tab) from just private to public, private and domain.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged .