Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Merhawi Fissehaye Newsgroups: comp.lang.ruby Subject: Ruby Socket Programming: No connection could be made error Date: Sat, 28 Apr 2012 03:45:38 -0700 (PDT) Organization: http://groups.google.com Lines: 12 Message-ID: <20233599.660.1335609938128.JavaMail.geo-discussion-forums@vbq19> NNTP-Posting-Host: 213.55.108.10 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1335609938 2528 127.0.0.1 (28 Apr 2012 10:45:38 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 28 Apr 2012 10:45:38 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=213.55.108.10; posting-account=r6mg2QoAAACxjo6Dyd1jXBLTBBquIGER User-Agent: G2/1.0 Xref: csiph.com comp.lang.ruby:6523 I am a beginner and I wanted to see how network programs are written in Rub= y and I tried a sample Ruby code I found on the internet. There are two pro= grams server.rb running in the background and client.rb trying to connect t= o my server program at the port number specific to the server program. I found the following error when running client.rb : client.rb:6:in 'initialize' : No connection could be made because the targe= t machine actively refused it. - connect(2) (Errno::ECONNREFUSED) from client.rb:6:in 'open' from client.rb:6:in '
' I am running the program from DOS