Determine user/computer name

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.

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 [email protected] 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 B.
http://www.frozenplague.net

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.

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.

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs