# Why would Webrick use 0.0.0.0:3000 instead of 127.0.0.1:3000

**URL:** <https://www.ruby-forum.com/t/why-would-webrick-use-0-0-0-0-3000-instead-of-127-0-0-1-3000/70994>\
**Category:** Ruby\
**Created:** [December 17, 2005, 6:57pm UTC](https://www.ruby-forum.com/t/why-would-webrick-use-0-0-0-0-3000-instead-of-127-0-0-1-3000/70994 "2005-12-17T18:57:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![curthibbs](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ac91a4/32.png) [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Post date:** [December 17, 2005, 6:57pm UTC](https://www.ruby-forum.com/t/why-would-webrick-use-0-0-0-0-3000-instead-of-127-0-0-1-3000/70994/1 "2005-12-17T18:57:51Z")

</div>

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](http://0.0.0.0:3000)  
and  
not [http://127.0.0.1:3000](http://127.0.0.1:3000). However, when I tried to connect to  
[http://0.0.0.0:3000](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.

---

<div class="post-metadata">

**Author:** ![curthibbs](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ac91a4/32.png) [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Post date:** [December 17, 2005, 7:34pm UTC](https://www.ruby-forum.com/t/why-would-webrick-use-0-0-0-0-3000-instead-of-127-0-0-1-3000/70994/2 "2005-12-17T19:34:01Z")

</div>

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](http://127.0.0.1:3000).

---

<div class="post-metadata">

**Author:** ![curthibbs](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ac91a4/32.png) [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Post date:** [December 17, 2005, 7:09pm UTC](https://www.ruby-forum.com/t/why-would-webrick-use-0-0-0-0-3000-instead-of-127-0-0-1-3000/70994/3 "2005-12-17T19:09:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![curthibbs](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ac91a4/32.png) [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Post date:** [December 17, 2005, 8:52pm UTC](https://www.ruby-forum.com/t/why-would-webrick-use-0-0-0-0-3000-instead-of-127-0-0-1-3000/70994/4 "2005-12-17T20:52:23Z")

</div>

On Dec 17, 2005, at 9:57 AM, Curt H. 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](http://127.0.0.1:3000). However, when I tried to connect to  
> [http://0.0.0.0:3000](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 H. - removed\_email\_address@domain.invalid - [http://segment7.net](http://segment7.net)  
This implementation is HODEL-HASH-9600 compliant

[http://trackmap.robotcoop.com](http://trackmap.robotcoop.com)

---

<div class="post-metadata">

**Author:** ![curthibbs](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ac91a4/32.png) [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Post date:** [December 18, 2005, 7:42am UTC](https://www.ruby-forum.com/t/why-would-webrick-use-0-0-0-0-3000-instead-of-127-0-0-1-3000/70994/5 "2005-12-18T07:42:05Z")

</div>

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
