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.

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.

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

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.