Page 1 of 1

specify non-default FTP port?

Posted: Mon Aug 27, 2007 11:20 am
by negx
I run a FTP server what uses port 1300, How do you specify that port in the FTP options? ive tried myserver.net:1300 and myserver.net 1300 in the ZM_UPLOAD_FTP_HOST field but none of them work.

Posted: Fri Aug 31, 2007 8:12 am
by kevin_robson
If you look in zmfilter.pl there is a line:

my $ftp = Net::FTP->new( ZM_UPLOAD_FTP_HOST, Timeout=>ZM_UPLOAD_FTP_TIMEOUT, Passive=>ZM_UPLOAD_FTP_PASSIVE, Debug=>ZM_UPLOAD_FTP_DEBUG );


Try adding in Port=>1234
to this line.

Not tried it but looking at the docs it should work.
http://search.cpan.org/dist/libnet/Net/FTP.pm