Net::FTP problem with localhost

D

Damian Terentiev

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?
 
G

Gordon Thiesfeld

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top