From: Arlen Cuss Date: 2012-10-21T09:22:49+09:00 Subject: Re: Socket help, getting Errno::ECONNREFUSED That's trying to connect to port 2000 on localhost, but nothing's listening there. You'll need a service listening on the port before you can connect to it. On Sunday, 21 October 2012 at 10:50 AM, 7stud -- wrote: > Well, the first thing I would try is using a much higher port number, > say something over 12,000 so you aren't in conflict with a reserved > port. See here: > > http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers > > -- > Posted via http://www.ruby-forum.com/.