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


#1

Someone working through my Rolling with Ruby on Rails tutorial ran into
this. Does anyone know what could cause this? I pasted the text of his
post
below.

Curt

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


#2

netstat and similar utilities will list the address as 0.0.0.0 when your
application listens for connections on any network interface. 0.0.0.0
is
not a real address so you can’t connect to it, but you should be able to
connect to 127.0.0.1 and any other IPs that you have assigned to network
interfaces.

Perhaps better explanation:
http://support.microsoft.com/default.aspx?scid=kb;en-us;175952

Cheers,
Olof