Click to See Complete Forum and Search --> : Getting the Client's machine name.....


April 12th, 1999, 11:52 PM
Hi,

I am working on an ASP project that requires the client's machine name. I know that there is a command
Request.Servervariables(REMOTE_HOST)
that returns the remote host name. But if I use this command the return value is the IP address of the machine rather than the remote host name. How do I get the remote host name? Can anybody help me out.

Thank you in adcance.

Anand

Chris M.
April 13th, 1999, 09:02 AM
call 'GetComputerName' on the client end and send the info to your host

anand_vijayan
April 14th, 1999, 08:21 AM
I think that GetComputerName is an API. How can I use an API in ASP. Could you please help me out here.

Thank you in advance.

Anand

V. Anand,
Flat No 201, DivyaSai Apts.,
64 Pragathi Nagar,
Yosufguda,
Hyderabad - 500 045.

iandrosov
July 30th, 1999, 10:22 AM
You can create Activex component in VC++ or VB get your computer name using API and use this new component in ASP script by calling Server.CreateObject ("NameOfActiveX DLL.NameOfObject")