From: Richard Surname on
Thank you sooooo much Jesús for the crystal clear explanation! You were
so on the mark and it saved me!

All the best,
Richard


Jesús Gabriel y Galán wrote:
>
> You can connect using the IP but not localhost (or 127.0.0.1). If you
> want your server to bind to all network interfaces, you can use
> 0.0.0.0:
>
> ~$ netstat -ant | grep 9900
> tcp 0 0 0.0.0.0:9900 0.0.0.0:*
> LISTEN
> jesus(a)jesus-laptop:~$ telnet localhost 9900
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> Connection closed by foreign host.
> jesus(a)jesus-laptop:~$ telnet 192.168.1.35 9900
> Trying 192.168.1.35...
> Connected to 192.168.1.35.
> Escape character is '^]'.
> Connection closed by foreign host.
>
> And then you can connect using all IPs that the machine uses.
>
> Jesus.
--
Posted via http://www.ruby-forum.com/.