Hello,

I write this with some trepidation because it is probably a simple
problem (I know next to nothing about sockets), but I've tried to find
the answer on Google and no luck.

When I do this:

sock = TCPSocket.new('localhost', 8080)

I get the the "connection refused" error: Errno::ECONNREFUSED

I have tried other ports, but anyway I don't think that's the problem.
(No luck with the others, of course.)

When I do this:

sock = TCPSocket.new('localhost', ftp)

it works fine.

Any idea why this doesn't work (or suggestions how I could troubleshoot)?

Thanks,
r