On 9 Oct 2012, at 04:51, ajay paswan <lists / ruby-forum.com> wrote:

> when am following:
> http://segment7.net/projects/ruby/drb/introduction.html
>=20
> I have run the server program on my local pc.
> Now if I run the client program on irb like:
> obj=3DDRbObject.new nil, 'druby://127.0.0.1:2010'
> and then I call a method for obj.call_method()
> its Ok.
>=20
Local host connection. Typically not fire walled, always works irrespective o=
f hardware issues.=20



> but I cant use my lan address which is supose ip.
> then By doing obj=3DDRbObject.new nil, 'druby://#{ip}:2010'   ----line 1.
> and then calling the method as obj.call_method() gives the following
> error:
>=20

Public ip connection. Often fire walled, impacted by hardware.=20

> DRb::DRbConnError: druby://192.168.0.205:2010 - #<Errno::ECONNREFUSED:
> Connection refused - connect(2)>
>  from /usr/lib/ruby/1.8/drb/drb.rb:736:in `open'
>  =20
>=20
> Why? how to fix it.
> Another thing I cant understand.. then why we din't get any error at
> line 1.=20
Any number of reasons. Check your firewall rules, verify your hardware is go=
od, verify you have a daemon listening on the port etc. sounds like a networ=
king issue, not a ruby issue.=20
>=20