During development, I''d like to see my Rails app from a computer other than localhost on a Linux system and also want to change the default port#. I thought this would do it: Linux server: $ script/server -b 10.4.1.84 -p 5432 => Booting WEBrick... => Rails application started on http://10.4.1.84:5432 => Ctrl-C to shutdown; call with --help for options ... Windows browser URL: http://10.4.1.84:5432/ BUT, the browser can''t find this and the WEBrick server on Linux shows no activity. Anyone know what gives? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Randall Potter
2007-Jan-24 01:20 UTC
Re: Viewing Rails from non-localhost using WEBrick server
Did you open that port (5432) under iptables? --R stan.baptista wrote:> During development, I''d like to see my Rails app from a computer other > than localhost on a Linux system and also want to change the default > port#. I thought this would do it: > > Linux server: > $ script/server -b 10.4.1.84 -p 5432 > => Booting WEBrick... > => Rails application started on http://10.4.1.84:5432 > => Ctrl-C to shutdown; call with --help for options > ... > > Windows browser URL: > http://10.4.1.84:5432/ > > BUT, the browser can''t find this and the WEBrick server on Linux shows > no activity. > > Anyone know what gives? > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
stan.baptista
2007-Jan-24 01:36 UTC
Re: Viewing Rails from non-localhost using WEBrick server
> Did you open that port (5432) under iptables?Don''t know for sure but I''ll check. I''m primarily a Windows developer, just starting to move initial development over to Linux. The sys admin gave me the port #. (I''m in-between systems at the moment which is why I wanted to view the app from my Windows system.) btw, SHOULD the script work? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Randall Potter
2007-Jan-24 01:41 UTC
Re: Viewing Rails from non-localhost using WEBrick server
stan.baptista wrote:> Don''t know for sure but I''ll check. I''m primarily a Windows developer, > just starting to move initial development over to Linux. The sys admin > gave me the port #. > > (I''m in-between systems at the moment which is why I wanted to view the > app from my Windows system.) > > btw, SHOULD the script work? > >To test open up lynx or some other console based web browser from the Linux command line and point it to http://localhost:5432/ if that works then it''s most likely iptables. --R --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
stan.baptista
2007-Jan-24 19:59 UTC
Re: Viewing Rails from non-localhost using WEBrick server
> then it''s most likely iptables.Yes. Thanks for the help. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Russell Norris
2007-Jan-26 15:16 UTC
Re: Viewing Rails from non-localhost using WEBrick server
I dunno if this helps but I added another domain in /etc/hosts. 127.0.0.1 localhost 127.0.1.1 [other mock domain name] This indeed works great for testing two domains. Or at least it appears. request.domain is correct [and different] for both. RSL On 1/24/07, stan.baptista <stan.baptista-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > > then it''s most likely iptables. > > Yes. Thanks for the help. > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Stan Baptista
2007-Jan-26 21:13 UTC
Re: Viewing Rails from non-localhost using WEBrick server
Thanks Russell On 1/26/07, Russell Norris <sconds-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > I dunno if this helps but I added another domain in /etc/hosts. > > 127.0.0.1 localhost > 127.0.1.1 [other mock domain name] > > This indeed works great for testing two domains. Or at least it appears. > request.domain is correct [and different] for both. > > RSL > > On 1/24/07, stan.baptista <stan.baptista-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > wrote: > > > > > > > then it''s most likely iptables. > > > > Yes. Thanks for the help. > > > > > > > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Dave South
2011-Jan-18 22:00 UTC
Re: Viewing Rails from non-localhost using WEBrick server
This one had me stumped for a while too but I have found if you modify Webrick config.rb and change the entry :DoNotReverseLookup => ''nil,'' to ''true,'' your non-local host will be able to connect with the Webrick server. You can find the config.rb file for Rails 1.9.1 and 1.9.2 in this directory .../usr/lib/ruby/1.9.1/webrick/config.rb -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Marnen Laibow-Koser
2011-Jan-18 22:26 UTC
Re: Viewing Rails from non-localhost using WEBrick server
stan.baptista wrote in post #195212:>> Did you open that port (5432) under iptables? > > Don''t know for sure but I''ll check. I''m primarily a Windows developer, > just starting to move initial development over to Linux. The sys admin > gave me the port #.Then the sysadmin needs a cluebat to the head. 5432 is the standard port for PostgreSQL and probably shouldn''t be used for other purposes...> > (I''m in-between systems at the moment which is why I wanted to view the > app from my Windows system.) > > btw, SHOULD the script work?I''m not sure if you need the -b. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org Sent from my iPhone -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.