specify non-default FTP port?
specify non-default FTP port?
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.
-
- Posts: 247
- Joined: Sun Jan 16, 2005 11:26 am
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
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