DRB not connecting from two diffrent computers

Hi I am following:
http://segment7.net/projects/ruby/drb/introduction.html

the first program of manipulating array:
if I run server on a computer in LAN:
then I get it as:
druby://myMachine:54185

but when I run client as on a diffrent computer:
ruby client.rb druby://myMachine:54185

it gives error:
/usr/lib/ruby/1.8/drb/drb.rb:736:in open': druby://myMachine:54185 - #<SocketError: getaddrinfo: Name or service not known> (DRb::DRbConnError) from /usr/lib/ruby/1.8/drb/drb.rb:729:ineach’
from /usr/lib/ruby/1.8/drb/drb.rb:729:in open' from /usr/lib/ruby/1.8/drb/drb.rb:1191:ininitialize’
from /usr/lib/ruby/1.8/drb/drb.rb:1171:in new' from /usr/lib/ruby/1.8/drb/drb.rb:1171:inopen’
from /usr/lib/ruby/1.8/drb/drb.rb:1087:in method_missing' from /usr/lib/ruby/1.8/drb/drb.rb:1105:inwith_friend’
from /usr/lib/ruby/1.8/drb/drb.rb:1086:in `method_missing’

please help!

On Mon, Oct 1, 2012 at 5:47 PM, ajay paswan [email protected]
wrote:

it gives error:
/usr/lib/ruby/1.8/drb/drb.rb:736:in `open’: druby://myMachine:54185 -
#<SocketError: getaddrinfo: Name or service not known>
(DRb::DRbConnError)

Probably that other computer cannot resolve “myMachine”. Try using the
IP.

Jesus.

“Jesús Gabriel y Galán” [email protected] wrote in post
#1078192:

On Mon, Oct 1, 2012 at 5:47 PM, ajay paswan [email protected]
wrote:

it gives error:
/usr/lib/ruby/1.8/drb/drb.rb:736:in `open’: druby://myMachine:54185 -
#<SocketError: getaddrinfo: Name or service not known>
(DRb::DRbConnError)

Probably that other computer cannot resolve “myMachine”. Try using the
IP.

Jesus.
Thank you very much!!! thats the exact answer!!