Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Is it possible to use Net::FTP or any other method to ftp to a server using a specific port (say port no. 2345) other than using the default?

Replies are listed 'Best First'.
Re: ftp via specific port
by Roger (Parson) on Nov 25, 2003 at 03:46 UTC
    Add the Port option when you build the FTP connection object -

    use Net::FTP; my $ftp = Net::FTP->new("host", Port => 2345); ...