I am running the webrick server (/script/server) and I would like to be able to view the application from any browser. However, I can only see my application from a browser opened up on the localhost. When I use any other browser it times out. I have already modified the following line in the /script/server file (I''ve tried the numeric ip address also) so that it is the real ip address (and not 0.0.0.0). I think I am entering the web address properly with the port number (e.g. http://draco.icmb.utexas.edu:3000/) :ip => "draco.icmb.utexas.edu", This seems like very odd behavior to me. Any ideas? Thank you.
I assume you are running rails in ''development'' mode ? You will need to edit your ./config/environments/development.rb and change the setting: ActionController::Base.consider_all_requests_local = true To ActionController::Base.consider_all_requests_local = false -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of John T. Prince Sent: Thursday, 6 October 2005 1:24 PM To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: [Rails] webrick seen only on local machine I am running the webrick server (/script/server) and I would like to be able to view the application from any browser. However, I can only see my application from a browser opened up on the localhost. When I use any other browser it times out. I have already modified the following line in the /script/server file (I''ve tried the numeric ip address also) so that it is the real ip address (and not 0.0.0.0). I think I am entering the web address properly with the port number (e.g. http://draco.icmb.utexas.edu:3000/) :ip => "draco.icmb.utexas.edu", This seems like very odd behavior to me. Any ideas? Thank you. _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
On my machine (Mac OS X) WEBrick in dev mode is accessible on the local subnet via Bonjour at http://computer-name.local:3000 It''s really nice for other people locally to be able to see what''s going on and test out when I''m ready. -- -- Tom Mornini On Oct 5, 2005, at 8:23 PM, John T. Prince wrote:> I am running the webrick server (/script/server) and I would like > to be able to view the application from any browser. However, I > can only see my application from a browser opened up on the > localhost. When I use any other browser it times out. I have > already modified the following line in the /script/server file > (I''ve tried the numeric ip address also) so that it is the real ip > address (and not 0.0.0.0). I think I am entering the web address > properly with the port number (e.g. http://draco.icmb.utexas.edu: > 3000/) > > :ip => "draco.icmb.utexas.edu", > > This seems like very odd behavior to me. Any ideas? > > Thank you. > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails
I changed the below mentioned file as suggested and thought that would fix the problem (for sure it was part of it). Then I turned off the host''s firewalls (another problem). Still, I am not able to view my app from any machine other than the local host. Very strange indeed. Any other ideas? (in any case, at this point I did get it working on apache, so the app is world viewable, but I would still love to be able to get webricks for other machines) Neville Burnell wrote:>I assume you are running rails in ''development'' mode ? > >You will need to edit your ./config/environments/development.rb and >change the setting: > >ActionController::Base.consider_all_requests_local = true > >To > >ActionController::Base.consider_all_requests_local = false > >-----Original Message----- >From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >[mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of John T. Prince >Sent: Thursday, 6 October 2005 1:24 PM >To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >Subject: [Rails] webrick seen only on local machine > >I am running the webrick server (/script/server) and I would like to be >able to view the application from any browser. However, I can only see >my application from a browser opened up on the localhost. When I use >any other browser it times out. I have already modified the following >line in the /script/server file (I''ve tried the numeric ip address also) >so that it is the real ip address (and not 0.0.0.0). I think I am >entering the web address properly with the port number (e.g. >http://draco.icmb.utexas.edu:3000/) > > :ip => "draco.icmb.utexas.edu", > >This seems like very odd behavior to me. Any ideas? > >Thank you. >_______________________________________________ >Rails mailing list >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >http://lists.rubyonrails.org/mailman/listinfo/rails >_______________________________________________ >Rails mailing list >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >http://lists.rubyonrails.org/mailman/listinfo/rails > >
On Oct 6, 2005, at 12:01 AM, Neville Burnell wrote:> I assume you are running rails in ''development'' mode ? > > You will need to edit your ./config/environments/development.rb and > change the setting: > > ActionController::Base.consider_all_requests_local = true > > To > > ActionController::Base.consider_all_requests_local = falseThis is not at all what that option is for. This option is used allow/prevent non-local requests from seeing a stacktrace when an exception is thrown. It is *not* for allowing/disallowing remote requests. If your webrick is listening on 0.0.0.0 (i.e. all interfaces) and you are unable to access it remotely, your issue is going to be with your network, probably a firewall. -- Scott Barron Lunchbox Software http://lunchboxsoftware.com http://lunchroom.lunchboxsoftware.com http://rubyi.st
>> This is not at all what that option is for.Yes, Scott is correct. Sorry for the misdirection here. -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Scott Barron Sent: Friday, 7 October 2005 3:43 AM To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: Re: [Rails] webrick seen only on local machine On Oct 6, 2005, at 12:01 AM, Neville Burnell wrote:> I assume you are running rails in ''development'' mode ? > > You will need to edit your ./config/environments/development.rb and > change the setting: > > ActionController::Base.consider_all_requests_local = true > > To > > ActionController::Base.consider_all_requests_local = falseThis is not at all what that option is for. This option is used allow/prevent non-local requests from seeing a stacktrace when an exception is thrown. It is *not* for allowing/disallowing remote requests. If your webrick is listening on 0.0.0.0 (i.e. all interfaces) and you are unable to access it remotely, your issue is going to be with your network, probably a firewall. -- Scott Barron Lunchbox Software http://lunchboxsoftware.com http://lunchroom.lunchboxsoftware.com http://rubyi.st _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails