For Programmers: Free Programming Magazines  


Home > Archive > ASP > April 2007 > How Can I Run Scripts to Get Client Info?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How Can I Run Scripts to Get Client Info?
vunet.us@gmail.com

2007-04-27, 6:55 pm

Hi,
My web application needs to retrieve some client's info, such as MAC
address, IP, OS, etc.
Java Applet does it well (with one time security warning). But if Java
is not installed, I am unable to run applet.
So, I need to find the equivalent in, perhaps, VBScript.
The question is: how can I read client's MAC address, IP, OS, etc.
through web interface on, mostly, Windows OS? Is it something like VBS
file? Or EXE file only? Any ideas?

Thank you

Mudiya Dissa

2007-04-27, 6:55 pm



Use the server variables.

you have to use

<%

strIpAddress = Request.ServerVariables("Remote_ADDR") 'for the IP
'can't remember for OS and MAC
%>

*** Sent via Developersdex http://www.developersdex.com ***
Bob Barrows [MVP]

2007-04-27, 6:55 pm

vunet.us@gmail.com wrote:
> Hi,
> My web application needs to retrieve some client's info, such as MAC
> address, IP, OS, etc.
> Java Applet does it well (with one time security warning). But if Java
> is not installed, I am unable to run applet.
> So, I need to find the equivalent in, perhaps, VBScript.
> The question is: how can I read client's MAC address, IP, OS, etc.
> through web interface on, mostly, Windows OS? Is it something like VBS
> file? Or EXE file only? Any ideas?
>
> Thank you

This will show you what's available:

<%
for each key in request.servervariables
response.write "request.servervariables(""" & key & _
""") contains """ & request.servervariables(key) & """<BR>"
next
%>
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


vunet.us@gmail.com

2007-04-27, 6:55 pm

On Apr 27, 11:43 am, Mudiya Dissa <mudit...@gmail.com> wrote:
> Use the server variables.
>
> you have to use
>
> <%
>
> strIpAddress = Request.ServerVariables("Remote_ADDR") 'for the IP
> 'can't remember for OS and MAC
> %>
>
> *** Sent via Developersdexhttp://www.developersdex.com***


Sorry, but I need access to mac address and OS more than IP. I need to
do it with some script running locally on user's PC. It has nothing to
do with ASP and ASP does not allow retriving this info. Hoever, thanks
for trying.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com