From: Matt Lawrence Date: 2010-04-27T00:25:28+09:00 Subject: Re: Ruby networking: Errno::ECONNREFUSED: Connection refused - connect(2) on Ubuntu 9.1 On Tue, 27 Apr 2010, Bill McLean wrote: > > When using the Ruby networking library in two sample programs below I get > the connect refused exception. To validate the code, I am running both the > client and server code in separate terminal windows. The ip address given > is the address that has been assigned to the eth0 device. > > The client fails to connect to the server. However if I change the ip > address to localhost or 127.0.0.1 then the connection is made. > > It may not have anything to do with ruby, but with the configuration of my > linux machine. Check your firewall settings, it may be blocked by iptables. -- Matt It's not what I know that counts. It's what I can remember in time to use.