How do I get hold of the computername in ASP.NET , VB.NET

Hi  I currently have a form that users fill in I am able to grab their Windows Login Username: by using User.Identity.Name.ToString() but I would like to also grab their Computername ( I have tried using Return Environ("COMPUTERNAME").ToString ) but this returns the server/computer name of where the form is hosting from and not the name of the computer submitting the form? I am able to get the IP address by using Request.ServerVariables("REMOTE_ADDR").ToString.

But any ideas for retrieving the computer name of the person submitting the form? What is the best and simplist way of achieve this please. Thanks in advance.
Who is Participating?
CodeCruiserConnect With a Mentor Commented:
Further research suggests that its not possible unless you use some activex or other component. Here is a link to a good source of general scripts though.
Because the ASP.NET code executes on the server, it would retrieve the server name. To retrieve the name of the client computer, you have to use JavaScript or VBScript. These links might be useful

REMOTE_ADDR will usually return the ip address, unless reverse DNS is enabled.  Check this link
adypipsAuthor Commented:
Hi thanks for the above comments, but they dont help me as I am not a Javascript coder, could you please provide a simple script in vbscript or javascript or script that will return the client computer name to a textbox for example  - as this would solve my problem, is there are way of doing this?

2nd comment, I can return the IP for the client no problem, really want the client computername, but thanks.

Thanks AdyPips.
adypipsAuthor Commented:
thanks codecruiser I will have a look at these.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.