specify non-default FTP port?

Support and queries relating to all previous versions of ZoneMinder
Locked
negx
Posts: 8
Joined: Tue Jul 31, 2007 2:25 pm

specify non-default FTP port?

Post 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.
kevin_robson
Posts: 247
Joined: Sun Jan 16, 2005 11:26 am

Post 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
Locked