Hello, From my rails application, I have given a download button, which will download a file from the server. At the time of downloading, I want to save the values of *IP Address* & *Client Type*( from which OS - Mac/Windows/Linux & system it was downloaded ) to the database. Any ideas how can I achieve this ? 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit groups.google.com/d/msg/rubyonrails-talk/-/K7d_eSJtVAEJ. For more options, visit groups.google.com/groups/opt_out.
On 11 September 2012 15:18, Avi <aavinash.behera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello, > > From my rails application, I have given a download button, which will > download a file from the server. > At the time of downloading, I want to save the values of IP Address & Client > Type( from which OS - Mac/Windows/Linux & system it was downloaded ) to the > database. > Any ideas how can I achieve this ?google for rails get client os ip Colin> > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > groups.google.com/d/msg/rubyonrails-talk/-/K7d_eSJtVAEJ. > For more options, visit groups.google.com/groups/opt_out. > >-- 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 groups.google.com/groups/opt_out.
Thanks a lot. It seems useful. I am going to try this. On Tuesday, September 11, 2012 8:09:59 PM UTC+5:30, Colin Law wrote:> > On 11 September 2012 15:18, Avi <aavinas...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <javascript:>> > wrote: > > Hello, > > > > From my rails application, I have given a download button, which will > > download a file from the server. > > At the time of downloading, I want to save the values of IP Address & > Client > > Type( from which OS - Mac/Windows/Linux & system it was downloaded ) to > the > > database. > > Any ideas how can I achieve this ? > > google for > rails get client os ip > > Colin > > > > > > 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 rubyonra...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<javascript:>. > > > To unsubscribe from this group, send email to > > rubyonrails-ta...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. > > To view this discussion on the web visit > > groups.google.com/d/msg/rubyonrails-talk/-/K7d_eSJtVAEJ. > > For more options, visit groups.google.com/groups/opt_out. > > > > >-- 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 To view this discussion on the web visit groups.google.com/d/msg/rubyonrails-talk/-/md1DkzPU2wUJ. For more options, visit groups.google.com/groups/opt_out.
mohitsharma.net/how-get-browser-operating-system-and-client-ip-rails 2012/9/11 Avi <aavinash.behera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> Thanks a lot. It seems useful. I am going to try this. > > On Tuesday, September 11, 2012 8:09:59 PM UTC+5:30, Colin Law wrote: >> >> On 11 September 2012 15:18, Avi <aavinas...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> > Hello, >> > >> > From my rails application, I have given a download button, which will >> > download a file from the server. >> > At the time of downloading, I want to save the values of IP Address & >> Client >> > Type( from which OS - Mac/Windows/Linux & system it was downloaded ) to >> the >> > database. >> > Any ideas how can I achieve this ? >> >> google for >> rails get client os ip >> >> Colin >> >> >> > >> > 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 rubyonra...@googlegroups.**com. >> > To unsubscribe from this group, send email to >> > rubyonrails-ta...@**googlegroups.com. >> > To view this discussion on the web visit >> > groups.google.com/d/**msg/rubyonrails-talk/-/K7d_**eSJtVAEJ<groups.google.com/d/msg/rubyonrails-talk/-/K7d_eSJtVAEJ>. >> >> > For more options, visit groups.google.com/**groups/opt_out<groups.google.com/groups/opt_out>. >> >> > >> > >> > -- > 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 > To view this discussion on the web visit > groups.google.com/d/msg/rubyonrails-talk/-/md1DkzPU2wUJ. > > For more options, visit groups.google.com/groups/opt_out. > > >-- thiagocifani about.me/thiagocifani <del.icio.us/thiagocifani> <del.icio.us/thiagocifani> -- 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 groups.google.com/groups/opt_out.
Hello, Thanks for the reply. I got correct solution for system os. But I am getting the ip as 127.0.0.1 which is default. I tried a few solutions. but nothing seems to be working. All are giving me same results. How can I change the ipaddress to the current system;s ipaddress ? On Tuesday, September 11, 2012 8:20:27 PM UTC+5:30, thiagocifani wrote:> > mohitsharma.net/how-get-browser-operating-system-and-client-ip-rails > > 2012/9/11 Avi <aavinas...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <javascript:>> > >> Thanks a lot. It seems useful. I am going to try this. >> >> On Tuesday, September 11, 2012 8:09:59 PM UTC+5:30, Colin Law wrote: >>> >>> On 11 September 2012 15:18, Avi <aavinas...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >>> > Hello, >>> > >>> > From my rails application, I have given a download button, which will >>> > download a file from the server. >>> > At the time of downloading, I want to save the values of IP Address & >>> Client >>> > Type( from which OS - Mac/Windows/Linux & system it was downloaded ) >>> to the >>> > database. >>> > Any ideas how can I achieve this ? >>> >>> google for >>> rails get client os ip >>> >>> Colin >>> >>> >>> > >>> > 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 rubyonra...@googlegroups.**com. >>> > To unsubscribe from this group, send email to >>> > rubyonrails-ta...@**googlegroups.com. >>> > To view this discussion on the web visit >>> > groups.google.com/d/**msg/rubyonrails-talk/-/K7d_**eSJtVAEJ<groups.google.com/d/msg/rubyonrails-talk/-/K7d_eSJtVAEJ>. >>> >>> > For more options, visit groups.google.com/**groups/opt_out<groups.google.com/groups/opt_out>. >>> >>> > >>> > >>> >> -- >> 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 rubyonra...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<javascript:> >> . >> To unsubscribe from this group, send email to >> rubyonrails-ta...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. >> To view this discussion on the web visit >> groups.google.com/d/msg/rubyonrails-talk/-/md1DkzPU2wUJ. >> >> For more options, visit groups.google.com/groups/opt_out. >> >> >> > > > > -- > thiagocifani > about.me/thiagocifani <del.icio.us/thiagocifani> > <del.icio.us/thiagocifani> > > >-- 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 To view this discussion on the web visit groups.google.com/d/msg/rubyonrails-talk/-/fmpsejw2sCUJ. For more options, visit groups.google.com/groups/opt_out.
On 11 September 2012 20:30, Avi <aavinash.behera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello, > > Thanks for the reply. > I got correct solution for system os. But I am getting the ip as 127.0.0.1 > which is default. > I tried a few solutions. but nothing seems to be working. All are giving me > same results. > How can I change the ipaddress to the current system;s ipaddress ?That is just because you are accessing the app from the same PC as the server is running on. If you go to a different PC and access the server on the first PC from there you should find that it shows the correct IP address. Colin> > On Tuesday, September 11, 2012 8:20:27 PM UTC+5:30, thiagocifani wrote: >> >> >> mohitsharma.net/how-get-browser-operating-system-and-client-ip-rails >> >> 2012/9/11 Avi <aavinas...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >>> >>> Thanks a lot. It seems useful. I am going to try this. >>> >>> On Tuesday, September 11, 2012 8:09:59 PM UTC+5:30, Colin Law wrote: >>>> >>>> On 11 September 2012 15:18, Avi <aavinas...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >>>> > Hello, >>>> > >>>> > From my rails application, I have given a download button, which will >>>> > download a file from the server. >>>> > At the time of downloading, I want to save the values of IP Address & >>>> > Client >>>> > Type( from which OS - Mac/Windows/Linux & system it was downloaded ) >>>> > to the >>>> > database. >>>> > Any ideas how can I achieve this ? >>>> >>>> google for >>>> rails get client os ip >>>> >>>> Colin >>>> >>>> >>>> > >>>> > 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 rubyonra...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>>> > To unsubscribe from this group, send email to >>>> > rubyonrails-ta...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>>> > To view this discussion on the web visit >>>> > groups.google.com/d/msg/rubyonrails-talk/-/K7d_eSJtVAEJ. >>>> > For more options, visit groups.google.com/groups/opt_out. >>>> > >>>> > >>> >>> -- >>> 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 rubyonra...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> To unsubscribe from this group, send email to >>> rubyonrails-ta...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> To view this discussion on the web visit >>> groups.google.com/d/msg/rubyonrails-talk/-/md1DkzPU2wUJ. >>> >>> For more options, visit groups.google.com/groups/opt_out. >>> >>> >> >> >> >> >> -- >> thiagocifani >> about.me/thiagocifani >> >> >> > -- > 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 > To view this discussion on the web visit > groups.google.com/d/msg/rubyonrails-talk/-/fmpsejw2sCUJ. > > For more options, visit groups.google.com/groups/opt_out. > >-- 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 groups.google.com/groups/opt_out.
Thanks a lot. I tried with another system & it is working. On Wednesday, September 12, 2012 2:00:09 AM UTC+5:30, Colin Law wrote:> > On 11 September 2012 20:30, Avi <aavinas...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <javascript:>> > wrote: > > Hello, > > > > Thanks for the reply. > > I got correct solution for system os. But I am getting the ip as > 127.0.0.1 > > which is default. > > I tried a few solutions. but nothing seems to be working. All are giving > me > > same results. > > How can I change the ipaddress to the current system;s ipaddress ? > > That is just because you are accessing the app from the same PC as the > server is running on. > If you go to a different PC and access the server on the first PC from > there you should find that it shows the correct IP address. > > Colin > > > > > On Tuesday, September 11, 2012 8:20:27 PM UTC+5:30, thiagocifani wrote: > >> > >> > >> > mohitsharma.net/how-get-browser-operating-system-and-client-ip-rails > >> > >> 2012/9/11 Avi <aavinas...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > >>> > >>> Thanks a lot. It seems useful. I am going to try this. > >>> > >>> On Tuesday, September 11, 2012 8:09:59 PM UTC+5:30, Colin Law wrote: > >>>> > >>>> On 11 September 2012 15:18, Avi <aavinas...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >>>> > Hello, > >>>> > > >>>> > From my rails application, I have given a download button, which > will > >>>> > download a file from the server. > >>>> > At the time of downloading, I want to save the values of IP Address > & > >>>> > Client > >>>> > Type( from which OS - Mac/Windows/Linux & system it was downloaded > ) > >>>> > to the > >>>> > database. > >>>> > Any ideas how can I achieve this ? > >>>> > >>>> google for > >>>> rails get client os ip > >>>> > >>>> Colin > >>>> > >>>> > >>>> > > >>>> > 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 rubyonra...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >>>> > To unsubscribe from this group, send email to > >>>> > rubyonrails-ta...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >>>> > To view this discussion on the web visit > >>>> > groups.google.com/d/msg/rubyonrails-talk/-/K7d_eSJtVAEJ. > >>>> > For more options, visit groups.google.com/groups/opt_out. > >>>> > > >>>> > > >>> > >>> -- > >>> 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 rubyonra...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >>> To unsubscribe from this group, send email to > >>> rubyonrails-ta...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >>> To view this discussion on the web visit > >>> groups.google.com/d/msg/rubyonrails-talk/-/md1DkzPU2wUJ. > >>> > >>> For more options, visit groups.google.com/groups/opt_out. > >>> > >>> > >> > >> > >> > >> > >> -- > >> thiagocifani > >> about.me/thiagocifani > >> > >> > >> > > -- > > 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 rubyonra...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<javascript:>. > > > To unsubscribe from this group, send email to > > rubyonrails-ta...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. > > To view this discussion on the web visit > > groups.google.com/d/msg/rubyonrails-talk/-/fmpsejw2sCUJ. > > > > For more options, visit groups.google.com/groups/opt_out. > > > > >-- 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 To view this discussion on the web visit groups.google.com/d/msg/rubyonrails-talk/-/TLWoO2NiVRkJ. For more options, visit groups.google.com/groups/opt_out.