Is it possible to somehow get the computer name or Windows user name of the person accessing my internal web page? I can get the remote IP address, but what I really need is the remote user or computer name. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Um. no. That information is not transmitted through any browser as it poses a very large security risk. On Dec 18, 2007 7:26 AM, Anthony <improvcornartist-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Is it possible to somehow get the computer name or Windows user name > of the person accessing my internal web page? I can get the remote IP > address, but what I really need is the remote user or computer name. > > >-- Ryan Bigg http://www.frozenplague.net --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
That''s what I had thought. However, someone else said they can get that information using javascript (ActiveXObject) or something with VBScript (I think through a shell). Also, I can get the remote IP address and trace it back (using system), and since it''s on an internal network it will show me a computer name. I was hoping there would be an easier or more convenient way to get the info using Ruby/ Rails or command shell. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
> That''s what I had thought. However, someone else said they can get > that information using javascript (ActiveXObject) or something with > VBScript (I think through a shell). Also, I can get the remote IP > address and trace it back (using system), and since it''s on an > internal network it will show me a computer name. I was hoping there > would be an easier or more convenient way to get the info using Ruby/ > Rails or command shell.If you just need the hostname of the computer and your reverse DNS is setup right just use the ''resolv'' library to look it up. -philip --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Thanks for the extra info. Resolv does work, however, the reverse lookup is not correct for a few of our IP addresses. I can''t do anything about the incorrect lookups, so I need some kind of workaround. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---