in reply to Net::FTP cannot connect in Windows 2003

Afaict, the "Unknown error" simply means that a connection with the FTP server at $ftp_addr could not be made. For example I can generate that error by setting $ftp_addr to 127.0.0.1 (there's no ftp server running on this box), or by setting it to 192.168.0.8 (which doesn't exist on my local network).

Could it be that a firewall that's configured to allow the "other ftp client applications" to work has not been configured to let perl act as an ftp client ?

Cheers,
Rob
  • Comment on Re: Net::FTP cannot connect in Windows 2003

Replies are listed 'Best First'.
Re^2: Net::FTP cannot connect in Windows 2003
by miniTotoro (Initiate) on Jul 16, 2007 at 20:52 UTC
    Okay, I feel really dumb. Turned out that McAfee was blocking FTP (inbound and outbound). As soon as I disabled that port blocking setting everything worked as advertised. ::sigh:: Thanks for all the help.
Re^2: Net::FTP cannot connect in Windows 2003
by miniTotoro (Initiate) on Jul 16, 2007 at 17:18 UTC
    There is no firewall configured on this server. There is only one company firewall, and both the XP and 2003 machines get to the ftp server through that firewall. As I mentioned, the same code was used on both of these machines. The code fails only on the 2003 server.
      I tried $^E and this is what I got:

      cannot connect: An established connection was aborted by the software in your host machine

      Anyone know what this means? I don't off the top of my head. Looks like I will have to do some research. Thanks.