Getting client side machine's name. 
Author Message
 Getting client side machine's name.

Is it possible to get the client machine's name w/ server side ASP or client
side VBScript?


Sun, 29 Aug 2004 04:03:18 GMT  
 Getting client side machine's name.
It's possible but resource intensive and somewhat unreliable to do reverse DNS lookups from client IP addresses especially with clients using dynamically assigned IP addresses.

--
Michael Harris
Microsoft.MVP.Scripting
Seattle WA US
--

Quote:

> Is it possible to get the client machine's name w/ server side ASP or client
> side VBscript?



Sun, 29 Aug 2004 04:10:19 GMT  
 Getting client side machine's name.
I actually did that, although I was not looking for it.  This can be as a vb
script or you can run it from ASP.

Function GetComputerName()
 dim ws
 Set ws = WScript.CreateObject("WScript.Network")
 WScript.Echo "Computer Name: " & Ws.ComputerName
 ws = ws.ComputerName
 GetComputerName = ws
End Function
Response.Write(GetComputerName())


Quote:
> Is it possible to get the client machine's name w/ server side ASP or
client
> side VBscript?



Sun, 29 Aug 2004 05:15:52 GMT  
 Getting client side machine's name.
1) if run on the server, that returns the server's machine name.
2) if run on the client, it _would_ return the client's machine name _assuming_ an IE browser _and_ sufficiently lowered security to allow it.

--
Michael Harris
Microsoft.MVP.Scripting
Seattle WA US
--

Quote:

> I actually did that, although I was not looking for it.  This can be as a vb
> script or you can run it from ASP.

> Function GetComputerName()
>  dim ws
>  Set ws = WScript.CreateObject("WScript.Network")
>  WScript.Echo "Computer Name: " & Ws.ComputerName
>  ws = ws.ComputerName
>  GetComputerName = ws
> End Function
> Response.Write(GetComputerName())



> > Is it possible to get the client machine's name w/ server side ASP or
> client
> > side VBscript?



Sun, 29 Aug 2004 05:40:03 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Getting client side machine's name.

2. Corrupt table / index header

3. PutImage BMP format for TP5?

4. Getting Client's IP Address on Client Side

5. Getting a machine's MAC address given a NETBIOS machine name or IP address

6. Getting the Terminal Services Client Machine Name

7. Knowing Client's machine name

8. Using a Server machine's Access Database from a clients machine

9. getting server side vbscript array to client side jscript

10. getting server side vbscript array to client side jscript

11. Release LFN v1.08 - Long filename unit for Win9x and TP6 up to BP7

12. Getting Machine Name/Login Name

 

 
Powered by phpBB® Forum Software