From: ptkwt@...1.aracnet.com (Phil Tomson) Date: 2001-10-07T06:42:12+09:00 Subject: [ruby-talk:22173] Re: dRuby, Linux and ports In article <20011006211205.47744.qmail@web13905.mail.yahoo.com>, chad fowler wrote: >> Has anyone gotten dRuby working on a Linux network? > >yes. > > >> 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. > >Perhaps you should post the source to your failing >programs. > OK, let's change the problem a bit: I know that I can get to port 80 on the server machine when the apache server is running (I can do: 'telnet 80' from a different machine and I get a connection), so I figured I'd try the simple web server on page 478 of the Pickaxe book (under the TCPServer class description). I killed apache on the server and then ran the simple ruby web server (as root, since it's a port # < 1024). On the server machine if I do: telnet localhost 80 it works, I get a connection and a response. I can even go to http://localhost on that machine and I get the current time (which is what that simple server on Pg 478 does). Fine and good. Now when I go to another machine and try: telnet 80 or try to get to http:// I get 'connection refused' - not so fine and good and basically the same behavior that I get when I try to use dRuby. I don't understand this, given that I can get to the server from the other machines if apache is running, but not if this simple ruby web server is running. Phil