From: Eric Hodel Date: 2006-05-06T05:41:25+09:00 Subject: Re: dRuby connection refused between two different machines On May 5, 2006, at 12:22 PM, Geert Fannes wrote: > -----Original Message----- > From: Eric Hodel [mailto:drbrain@segment7.net] > Sent: Fri 5/5/2006 7:55 PM > To: ruby-talk ML > Subject: Re: dRuby connection refused between two different machines > >> On May 5, 2006, at 4:27 AM, Geert Fannes wrote: >> >>> Hello, I have been playing with dRuby and am getting strange >>> differences with >>> passing DRbUndumped-objects from a client machine to a DIFFERENT >>> server and >>> calling methods on this object: >> >> You're telling the client to connect back to the local machine. >> >>> #client code >>> [...] >>> server=DRbObject.new(nil,'druby://localhost:1234') >> ^^^^^^^^^^^^^^^^^^^^^^^ > > I did replace the localhost with the server machine hostname, as I > wrote furtheron in my original mail: > > "If I start the server code on a DIFFERENT machine (same OS > (slackware 10.2), > same ruby version (1.8.4)) and replace "localhost" with the server > machine > name in the client code, the server gives as output:" In the future please give exactly the code that is broken. > Anyway, the client can connect to the server since the server wrote > "receiving something". It must be something else. Then likely your second machine doesn't have a hostname set. Check your DNS for both machines, forward and reverse. -- Eric Hodel - drbrain@segment7.net - http://blog.segment7.net This implementation is HODEL-HASH-9600 compliant http://trackmap.robotcoop.com