From: Mat Schaffer Date: 2007-10-10T14:24:21+09:00 Subject: Re: Simple socket server not working? On Oct 9, 10:54 pm, Stephen Ware wrote: > Any idea why this code... > > require 'socket' > server = TCPServer.new('127.0.0.1', 5056) > socket = server.accept > socket.puts('it works') > socket.flush > > doesn't work on my Unix server? If I run it in the background, I can > connect from the same machine using telnet and it works fine... but I > cannot connect from any remote machines. > > What am I missing? A firewall perhaps? Does it work locally but not from a remote machine? The code worked fine for me totally locally, so I think the problem is network-related. -Mat