Good day all!
I’ve started an FTP server on localhost:8021.
Other clients (I’ve tried wget) connect successfully.
Net:FTP.open(‘localhost:8021’) raises an exception:
SocketError: getaddrinfo: nodename nor servname provided, or not known
It is ruby 1.8.6 on Mac OS X 10.5 Leopard.
Could anyone please help me identify the source of the problem and give
me any advice?
On Wed, Apr 23, 2008 at 7:33 AM, Damian T.
[email protected] wrote:
Good day all!
I’ve started an FTP server on localhost:8021.
Other clients (I’ve tried wget) connect successfully.
Net:FTP.open(‘localhost:8021’) raises an exception:
Look at the connect method.
Untested:
ftp = Net::FTP.new
ftp.connect(host, port)
ftp.login(user, password)
hope that helps,
Gordon
Look at the connect method.
hope that helps,
Thank you very much, Gordon.
That indeed saved the situation.
Damian