From: Joel VanderWerf Date: 2013-07-19T02:52:59+09:00 Subject: Re: Call a method with block on distributed object (drb) On 07/16/2013 06:35 AM, Enrico Pilotto wrote: > Hi. ... > require 'drb' > > c = DRbObject.new_with_uri('druby://127.0.0.1:9000') > c.each(8) do |i| > puts i > end > > > I run the server (ok) and then the client and I get the follow error: > > > /Users/pioz/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/drb/drb.rb:1687:in > `current_server': DRb::DRbServerNotFound (DRb::DRbConnError) Insert this line at the beginning of your client: DRb.start_service The server is trying to yield to code on the client. This is the same as sending #call to a remote proc in the client. As with any remote method call, there has to be a listening drb server in the client.