Curt Hibbs
2005-Dec-17 17:17 UTC
Why would Webrick use 0.0.0.0:3000 instead of 127.0.0.1:3000 ?
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?. _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Curt Hibbs
2005-Dec-17 17:20 UTC
Why would Webrick use 0.0.0.0:3000 instead of 127.0.0.1:3000 ?
Someone working through my Rolling with Ruby on Rails tutorial is having this problem. Does anyone know what could cause it? I pasted the text of his message below. Thanks, Curt -- Original 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?.
Curt Hibbs
2005-Dec-17 17:57 UTC
Why would Webrick use 0.0.0.0:3000 instead of 127.0.0.1:3000 ?
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.
Justin Forder
2005-Dec-17 18:08 UTC
Re: Why would Webrick use 0.0.0.0:3000 instead of 127.0.0.1:3000 ?
Curt Hibbs wrote:> Someone working through my Rolling with Ruby on Rails tutorial is having > this problem. Does anyone know what could cause it? I pasted the text of > his message below. > > Thanks, > Curt > > -- Original 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?.I asked Dave Thomas (via the Errata) what the 0.0.0.0 meant when AWDR first came out in beta, so he included the answer - it tells the server to listen on all the host''s IP addresses. That doesn''t imply that you can point your browser at 0.0.0.0 - although that''s what DHH does in the Rails movie (and it works for me on the Mac). On Windows XP, running WEBrick from the Instant Rails command prompt, I see the same "The connection was refused..." dialog if I try to browse http://0.0.0.0:3000, but there''s no problem with browsing http://localhost:3000. Thanks for an excellent package... I just have a problem with, I think, interactions between my normal MySQL installation and the Instant Rails one. I''ve changed the socket that the Instant Rails MySQL runs on, but (I just found out when anwering this post) if I try to run the Cookbook application the attempt to connect to MySQL fails with "access denied". My normal MySQL setup has a root password. regards Justin
Lou Vanek
2005-Dec-17 18:20 UTC
Re: Why would Webrick use 0.0.0.0:3000 instead of 127.0.0.1:3000 ?
if localhost:3000 doesn''t work, try 127.0.0.1:3000. If that doesn''t work, open the hosts file at, Windows XP = C:\WINDOWS\SYSTEM32\DRIVERS\ETC Windows 2K = C:\WINNT\SYSTEM32\DRIVERS\ETC Win 98/ME = C:\WINDOWS and add the following line to the end of the hosts file (if it''s not there already), 127.0.0.1 localhost Curt Hibbs wrote:> Someone working through my Rolling with Ruby on Rails tutorial is having > this problem. Does anyone know what could cause it? I pasted the text of > his message below. > > Thanks, > Curt > > -- Original 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?.
Derek Chesterfield
2005-Dec-17 18:31 UTC
Re: Why would Webrick use 0.0.0.0:3000 instead of 127.0.0.1:3000 ?
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. On 17 Dec 2005, at 17:57, Curt Hibbs wrote:> 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?.
Justin Forder
2005-Dec-17 18:33 UTC
Re: Why would Webrick use 0.0.0.0:3000 instead of 127.0.0.1:3000 ?
Justin Forder wrote:> Thanks for an excellent package... I just have a problem with, I think, > interactions between my normal MySQL installation and the Instant Rails > one. I''ve changed the socket that the Instant Rails MySQL runs on, but^^^^^^ port> (I just found out when anwering this post) if I try to run the Cookbook > application the attempt to connect to MySQL fails with "access denied". > My normal MySQL setup has a root password.My mistake - needed to change the Cookbook database config to use the different port. To run it under WEBrick, I also needed to create a log directory. regards Justin