Forum: Ruby Why would Webrick use 0.0.0.0:3000 instead of 127.0.0.1:3000

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
4c3511a439ed90fa012a55928a60e230?d=identicon&s=25 Curt Hibbs (Guest)
on 2005-12-17 18:57
(Received via mailing list)
A guy who was working through my Rolling wit Ruby on Rails tutorial had
this
happen and posted it to the articles comments. I've never seen this
before... does anyone know what could cause this? I copied his post
below.

Curt

Subject: Problems using Instant Rails
Author: juantar

Text of message:
I am using Instant Rails which comes with Rails 1.0, WEBrick 1.3.1 and
Ruby
1.8.2 and I ran the WEBrick server and it starts on http://0.0.0.0:3000
and
not http://127.0.0.1:3000. However, when I tried to connect to
http://0.0.0.0:3000 using my browser, a dialog pops up telling me that
"the
connection was refused". Any suggestions on how to solve this problem?.

Thank you.
918c6daad03c85e51ad1a11f57017947?d=identicon&s=25 Devin Mullins (Guest)
on 2005-12-17 19:09
(Received via mailing list)
Mine's always said it starts on 0.0.0.0 (I'm using normal Rails, not the
Instant kind). I just assume its some sort of network-geek alias for
localhost and go there instead. localhost:3000 works fine.

Devin
B4a3fe24e9fb82df573ae5b38aa3b872?d=identicon&s=25 Derek Chesterfield (Guest)
on 2005-12-17 19:34
(Received via mailing list)
It doesn't really mean it is listening on 0.0.0.0 - this actually
means that it is listening on any interface on the computer,
including 127.0.0.1 and any other IP addresses.

Your reader should connect to http://127.0.0.1:3000.
58479f76374a3ba3c69b9804163f39f4?d=identicon&s=25 Eric Hodel (Guest)
on 2005-12-17 20:52
(Received via mailing list)
On Dec 17, 2005, at 9:57 AM, Curt Hibbs wrote:

>
> Text of message:
> I am using Instant Rails which comes with Rails 1.0, WEBrick 1.3.1
> and Ruby
> 1.8.2 and I ran the WEBrick server and it starts on http://
> 0.0.0.0:3000 and
> not http://127.0.0.1:3000. However, when I tried to connect to
> http://0.0.0.0:3000 using my browser, a dialog pops up telling me
> that "the
> connection was refused". Any suggestions on how to solve this
> problem?.

Tell them to disable their firewall.

--
Eric Hodel - drbrain@segment7.net - http://segment7.net
This implementation is HODEL-HASH-9600 compliant

http://trackmap.robotcoop.com
C475cffda1800fbc3f3af17bc10c220f?d=identicon&s=25 Curt Hibbs (Guest)
on 2005-12-18 07:42
(Received via mailing list)
I've been out all day, but thanks to everyone for all the helpful
answers, and my apologies for the duplicate posts (some problem with
my email).

Curt
This topic is locked and can not be replied to.