method
connect
v2_2_9 -
Show latest stable
- Class:
Net::FTP
connect(host, port = FTP_PORT)public
Establishes an FTP connection to host, optionally overriding the default port. If the environment variable SOCKS_SERVER is set, sets up the connection through a SOCKS proxy. Raises an exception (typically Errno::ECONNREFUSED) if the connection cannot be established.