|
-
Mar 14th, 2001, 07:18 AM
#1
Thread Starter
Junior Member
How do I get the machine name of the computer that I am running an application from using VBscript or ASP? This is not the server.
-
Mar 15th, 2001, 11:02 AM
#2
I am not sure in VB Script/ASP.
However in VB you could declare and then invoke it
Private Declare Function GetComputerName Lib "kernel32" Alias "GetComputerNameA" _
(ByVal lpBuffer As String, nSize As Long) As Long
-
Mar 15th, 2001, 11:05 AM
#3
Thread Starter
Junior Member
VBscript
In VBscript API's can't be declared. This is a web app which uses html, asp. vbscript, and java script.
-
Mar 15th, 2001, 11:19 AM
#4
Well I know that part - APIs cannot be delared in VB Script
That was the reason I first said this is in VB. Probably you did not read the entire post.
-
Mar 16th, 2001, 04:32 AM
#5
Lively Member
I don't think it's possible to get the machine-name of the person visiting your website.
If it was, it should probably be in the Request.Servervariables-collection, but it isn't. I'm not sure about this... maybe someone else knows a bit more?
-
Mar 16th, 2001, 12:38 PM
#6
Black Cat
If you get their IP address you could try a reverse DNS ( or a reverse WINS???) lookup. Blackice seems to get the Netbios computer and/or network name of "hackers", so it is possible.
Josh
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Mar 16th, 2001, 01:02 PM
#7
Lively Member
I think u can use in ASP Request.ServerVariables("SERVER_NAME") to get the server name and Request.ServerVariables("REMOTE_HOST") to get the host computer name. I hope this helps...
Sonia
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|