On Jun 17, 2005, at 2:11 AM, Thomas Bätzler wrote:
Robert Citek <[EMAIL PROTECTED]>
Anyone have any ideas why code using Net::FTP on one machine
won't work on another?

However, the most common cause of problems with Net::FTP
is not a Perl but a networking problem - namely firewalls
and NAT gateways. Have you tried switching your client to
passive FTP mode? That fixes problems most of the time.

Turning off the firewall on the second Mac made no difference. However, changing the line from

  my $ftp = new Net::FTP("ftp.ncbi.nih.gov") or die;

to

  my $ftp = new Net::FTP("ftp.ncbi.nih.gov", Passive => "1") or die;

seemed to have done the trick.  Thanks for the suggestion.

Regards,
- Robert
http://www.cwelug.org/downloads
Help others get OpenSource software.  Distribute FLOSS
for Windows, Linux, *BSD, and MacOS X with BitTorrent

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to