Results 1 to 7 of 7

Thread: Machine Name

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2000
    Location
    Mobile, AL
    Posts
    16

    Question

    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.

  2. #2
    Guest
    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

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jan 2000
    Location
    Mobile, AL
    Posts
    16

    VBscript

    In VBscript API's can't be declared. This is a web app which uses html, asp. vbscript, and java script.

  4. #4
    Guest
    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.

  5. #5
    Lively Member
    Join Date
    Mar 2001
    Location
    Sweden
    Posts
    115
    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?

  6. #6
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    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.

  7. #7
    Lively Member harsoni's Avatar
    Join Date
    Oct 2000
    Posts
    118

    Smile

    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
  •  



Click Here to Expand Forum to Full Width