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-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
TCP Address binding /resolution
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password