From: Rich Kilmer Date: 2001-10-07T06:27:07+09:00 Subject: [ruby-talk:22171] Re: dRuby, Linux and ports try replacing druby://localhost:9000 with druby://: ruby has an option when opening a server socket to bind to a single address or all addresses. it may help, rich > -----Original Message----- > From: Phil Tomson [mailto:ptkwt@shell1.aracnet.com] > Sent: Saturday, October 06, 2001 5:22 PM > To: ruby-talk ML; undisclosed-recipients: > Subject: [ruby-talk:22170] Re: dRuby, Linux and ports > > > In article <01100622554113.00793@linux>, > Armin Roehrl wrote: > >hi, > > it works on my machine(s). > >What port are you using? > > I've tried several - 7777, 9876, even killed apache and ran on > port 80 (as > root). > > >If you want me to try it, email me the code. > > > >Try this: -- i.e. on port 9000 (try sth. > 1024) > >1st try it on the same machine (localhost) > >then replace localhost by whatever the name(s) are. > >server: > > > > Yes, I'm essentially running the same code you include here (very > similar). What I find is that I can run client and server on the same > machine (localhost) but I cannot run client and server on different > machines. > > I even killed apache and then used port 80 (as root) > because I know that I can get to the machine running apache from the > other machines. No luck,though. When I use the Ruby server on port 80 I > still get 'Connection Refused'. I even tried the simple web server on > page 478 of the Pickaxe book and I cannot get to it from a remote > machine, > but I can get to it on the same machine the server runs on. It's quite > mysterious, I don't understand what apache is doing differntly from my > server (why can I get to port 80 from a remote machine when apache runs, > but not when my druby server runs?). I'm stumped. > > Phil > > > >require 'drb' > >class TestServer > > def doit > > "Hello, Distributed Ruby World" > > end > >end > >aServerObject = TestServer.new > >DRb.start_service('druby://localhost:9000', > > aServerObject) > >DRb.thread.join > > > >client: > >require 'drb' > >DRb.start_service() > >obj = DRbObject.new(nil, > > 'druby://localhost:9000') > >p obj.doit > > > > > >Ciao, > > A > >On Saturday 06 October 2001 21:42, you wrote: > >> Has anyone gotten dRuby working on a Linux network? > >> What I'm finding is that I always get a "Connection Refused" exception. > >> I'm thinking that this is due to ports being blocked. I've > tried turning > >> off all firewalling, but it didn't help. Has anyone had this > problem on a > >> Linux network? Previously, I had dRuby working on a Windows network at > >> work - I suspect this is because the various Windows varients > have fairly > >> lax security. > >> > >> I've got three PCs: > >> 1) Runs Mandrake 8.1 > >> 2) Runs Progeny Linux 1.0 > >> 3) Runs Mandrake 7.1 > >> > >> Any ideas? > >> > >> Phil > > > >-- > >Armin. > > > >----------------------------------------------- > >Armin Roehrl, http://www.approximity.com > >public-key: http://www.approximity.com/pgp/armin_roehrl.pgp > > > >"The best way to predict the future is to invent it." > > --Alan Kay > > > > > > >