[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

TCP Address binding /resolution

Zablon Ochomo

10/25/2007 9:59:00 AM

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....

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-....

2 Answers

Arlen Cuss

10/25/2007 10:04:00 AM

0


Try 0.0.0.0.

Arlen


Zablon Ochomo

10/25/2007 10:12:00 AM

0



Thanks,

It works.

Cheers

--
Ochomo

Arlen Christian Mart Cuss wrote:
> Try 0.0.0.0.
>
> Arlen

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