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:in `each'
from /usr/lib/ruby/1.8/drb/drb.rb:729:in `open'
from /usr/lib/ruby/1.8/drb/drb.rb:1191:in `initialize'
from /usr/lib/ruby/1.8/drb/drb.rb:1171:in `new'
from /usr/lib/ruby/1.8/drb/drb.rb:1171:in `open'
from /usr/lib/ruby/1.8/drb/drb.rb:1087:in `method_missing'
from /usr/lib/ruby/1.8/drb/drb.rb:1105:in `with_friend'
from /usr/lib/ruby/1.8/drb/drb.rb:1086:in `method_missing'
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)
"Jesús Gabriel y Galán" <jgabrielygalan@gmail.com> wrote in post #1078192:
···
On Mon, Oct 1, 2012 at 5:47 PM, ajay paswan <lists@ruby-forum.com> > 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.