Passive (PASV) connections tend not to work when the FTP server is behind a firewall/NAT/router. Did you try an active (PORT) connection?

In reply to Re: problem with put function by ikegami
in thread problem with put function by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":