Hi, Can Anyone tell me how to get the IP address of the system through rails application? The system''s IP on which the application running Thanks, --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 2 Dec 2008, at 13:55, hema gonaboina wrote:> Hi, > Can Anyone tell me how to get the IP address of the system > through rails application? > The system''s IP on which the application running >Well request.host tells you the host (which isn''t quite the same thing). Obviously you can grep the output of ifconfig -a but that might not be entirely helpful (eg on the servers that we rung that would return several ip addresses). Fred> Thanks, > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Thank You Fred it worked ... On Dec 2, 7:18 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 2 Dec 2008, at 13:55, hema gonaboina wrote: > > > Hi, > > Can Anyone tell me how to get the IP address of the system > > through rails application? > > The system''s IP on which the application running > > Well request.host tells you the host (which isn''t quite the same > thing). Obviously you can grep the output of ifconfig -a but that > might not be entirely helpful (eg on the servers that we rung that > would return several ip addresses). > > Fred > > > Thanks,--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---