TCP Address binding /resolution

Hello,

I have a small ruby server application that uses code like this:

server = TCPServer.new('10.2.77.66', 6060)

the problem is that I can only access it on browser if I use:

http://10.2.77.66:6060

instead i want to access it also using: hostname, localhost, 127.0.0.1,
...

is there a way I can instantiate the TCPServer to take care of all
addresses?

···

--
Ochomo
--
Posted via http://www.ruby-forum.com/.

Try 0.0.0.0.

Arlen

Thanks,

It works.

Cheers

···

--
Ochomo

Arlen Christian Mart Cuss wrote:

Try 0.0.0.0.

Arlen

--
Posted via http://www.ruby-forum.com/.