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

C

Curt Hibbs

------=_Part_3258_21100517.1134839838299
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

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

------=_Part_3258_21100517.1134839838299--
 
O

olof sivertsson

------=_Part_4255_28861329.1134910710779
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

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=3Dkb;en-us;175952

Cheers,
Olof

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:3000an= d
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?.

------=_Part_4255_28861329.1134910710779--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top