Mat Schaffer
10/10/2007 5:24:00 AM
On Oct 9, 10:54 pm, Stephen Ware <sgw...@gmail.com> 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