When I use FTP.open(host) or FTP.new(host) it always assume that I want
to use port 21 by default. Is there a way to modify this? Like, does it
exist a variable in the FTP class that I can modify in real time?
(I don’t want to use the “connect” function in the library)
When I use FTP.open(host) or FTP.new(host) it always assume that I
want
to use port 21 by default. Is there a way to modify this? Like,
does it
exist a variable in the FTP class that I can modify in real time?
Net::FTP uses the port defined in the FTP_PORT constant. Changing
that should allow you to connect to a different port.
When I use FTP.open(host) or FTP.new(host) it always assume that I
want
to use port 21 by default. Is there a way to modify this? Like,
does it
exist a variable in the FTP class that I can modify in real time?
Net::FTP uses the port defined in the FTP_PORT constant. Changing
that should allow you to connect to a different port.
Thank you for the reference. But since It is a constant I do not want to
change it (matter of principle, really) I’ll try to add a specific
function to the library that does what I need