You'd have to use the server to resolve the name of the IP address of the
client machine. Here's a flakey method that may work most of the time.
<%
Dim sIP
Dim oShell, oExec, sCommand, sOutput
sIP = Request.ServerVariables("REMOTE_ADDR")
sCommand = "%comspec% /c @echo off & for /f ""tokens=2"" %q in ('ping -n
1 -a " & sIP & "^|find /i ""pinging""') do echo %q"
Set oShell = Server.CreateObject("WScript.Shell")
Set oExec = oShell.Exec(sCommand)
sOutput = sOutput & oExec.StdOut.ReadAll
Set oExec = Nothing
Set oShell = NOthing
Response.WRite sOutput
%>
Ray at work
"Ryd" <ry******@hotmail.com> wrote in message
news:68*************************@posting.google.co m...
I'm looking for at asp script that grap the clients computername when
they access a local http site. The client and server is in a local
domaine.