[Instantrails-users] Fwd: No Instant Gratification ! Browser, can't access localhost:3000 (IR 1.4)
Harrivel
gharrivel at free.fr
Sun Dec 10 12:23:18 EST 2006
Well, I have found! after re-installing InstantRails on another PC, the
firewall asked which access right must be given to Ruby Interpreter. I
answered "total access" and the connection to localhost:3000 was
successfull.
On my laptop, I remember I answered "incoming access" on the first time
and this access right was registered and always applied by McAfee
Personal Firewall, turned on or turned off... But maybe I don't know
very well how McAffe works, but the fact is thre was no other access
right request for Ruby Interpreter.
So we can say that Ruby Interpreter needs "total access" to internet. If
not, the WEBRick server cannot receive incoming requests from any PC,
local or distant, and cannot send any datas. The "total access" right
must be given before the "ruby script/server" command. Maybe this rule
should be explicited in the documentation...
Thanks to Curt.
Gérard Harrivel
Curt Hibbs a écrit :
>
>
> ---------- Forwarded message ----------
> From: *Curt Hibbs* <curt.hibbs at gmail.com <mailto:curt.hibbs at gmail.com>>
> Date: Dec 8, 2006 7:52 AM
> Subject: Re: [Instantrails-users] No Instant Gratification ! Browser,
> can't access localhost:3000 (IR 1.4)
> To: Harrivel <gharrivel at free.fr <mailto:gharrivel at free.fr>>
>
> Everything looks good so far. I can think of two more things to try.
>
> 1) Try using http://127.0.0.1:3000/ instead of http://localhost:3000/
> -- it shouldn't make any difference, but it is worth trying.
>
> 2) You might have a firewall running that is blocking access
> (ZoneAlarm, Kerio, etc.) Try first turning off any firewall you might
> have running (including the one built in to windows). If it then
> works, you know it was the firewall and you can go back and try to set
> your firewall options to allow access without having to shutdown the
> whole firewall.
>
> Curt
>
>
> On 12/8/06, *Harrivel* < gharrivel at free.fr <mailto:gharrivel at free.fr>>
> wrote:
>
> Hi, Curt.
>
> thank you for your response. Excuse-me sending you directly this mail,
> but I don't know how to post a reply via the maillist. (can you
> forward
> it to maillist ?)
>
> Well, I have done exactly what you say in your mail and it is the
> same
> results. Versions used (given by -v):
> ruby : 1.8.5
> rails : 1.1.6
> Here is the console log.
> ---------------------------------------------
> C:\INSTAN~1>CD C:\InstantRails
>
> C:\InstantRails>PATH
> C:\InstantRails\ruby\bin;C:\InstantRails\mysql\bin;C:\EasyE
> clipse for Ruby On Rails
> 1.0.2\ruby\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOW
> S\System32\Wbem;C:\Program Files\Fichiers
> communs\GTK\2.0\bin;C:\Program
> Files\Q
> uickTime\QTSystem\;C:\INSTAN~1\ruby\bin;C:\INSTAN~1\Apache;C:\INSTAN~1\PHP
>
> C:\InstantRails>cd rails_apps
>
> C:\InstantRails\rails_apps>dir
> Le volume dans le lecteur C n'a pas de nom.
> Le numéro de série du volume est 7009-69BD
>
> Répertoire de C:\InstantRails\rails_apps
>
> 08/12/2006 09:51 <REP> .
> 08/12/2006 09:51 <REP> ..
> 08/10/2006 22:49 <REP> .metadata
> 08/12/2006 09:51 <REP> cookbook
> 08/12/2006 09:51 <REP> typo-2.6.0
> 0 fichier(s) 0 octets
> 5 Rép(s) 37 297 393 664 octets libres
>
> C:\InstantRails\rails_apps>cd cookbook
>
> C:\InstantRails\rails_apps\cookbook>ruby script/server
> => Booting WEBrick...
> => Rails application started on http://0.0.0.0:3000
> <http://0.0.0.0:3000>
> => Ctrl-C to shutdown server; call with --help for options
> [2006-12-08 10:04:30] INFO WEBrick 1.3.1
> [2006-12-08 10:04:30] INFO ruby 1.8.5 (2006-08-25) [i386-mswin32]
> [2006-12-08 10:04:30] INFO WEBrick::HTTPServer#start: pid=1676
> port=3000
> ------------------------------------------------
> Before calling the browser, I typed a netstat -a command : port
> 3000 is
> not used. Firefox said (it is in french) :
>
> La connexion a échoué
> Firefox ne peut établir de connexion avec le serveur à l'adresse
> localhost:3000.
> (connexion has failed. Firefox cannot establish connexion with the
> server at address localhost:3000)
>
> I am stopped by this problem at page 45... The book contains more 700
> pages! Best regards.
>
> Gérard Harrivel
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Instantrails-users mailing list
> Instantrails-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/instantrails-users
More information about the Instantrails-users
mailing list