Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to retrieve the client's machine info

Status
Not open for further replies.

sabavno

Programmer
Jul 25, 2002
381
CA
Hi, I need help with retrieving the user information from the client's machine. When I run the following code, it returns the server's information rather than the machine's from which the asp page was open.

Set n = Server.CreateObject("WScript.Network")
UserName=n.UserName


Please advise.

Thanks.
 
what information are you trying to retrieve?

___________________________________________________________________
[sub]
The answer to your ??'s may be closer then you think.
Check out Tek-Tips knowledge bank by clicking the FAQ link at the top of the page
[/sub]
 
try using server variables
sounds like you're looking for
Request.ServerVariables("LOGON_USER")

also
reference faq333-4564

and a snap shot
Code:
Request.ServerVariables
AUTH_TYPE: Authentication method of the server
CONTENT_LENGTH: Length of the request
CONTENT_TYPE: Type of Request Object (GET or POST)
GATEWAY_INTERFACE: The CGI specification
HTTP_headername: Proprietary header 
LOGON_USER: Windows NT account used
PATH_INFO: Virtual path on the server of the file requested
PATH_TRANSLATED: Physical path on the server of the file requested
QUERY_STRING: Query String for an anchor tag
REMOTE_ADDR: Address of the client machine
REMOTE_HOST: Name of the client machine
REQUEST_METHOD:
POST, GET or PUT
SCRIPT_MAP: Domain name of the URL
SCRIPT_NAME: File requested with the virtual root
SERVER_NAME: Port that the client sends the request to
SERVER_PORT: Name of the Web Server answering the port
SERVER_PORT_SECURE: 1= secure & 0 = not secure
SERVER_PROTOCOL
SERVER_SOFTWARE: Web software running on the server
URL:File requested including the virtual path

___________________________________________________________________
[sub]
The answer to your ??'s may be closer then you think.
Check out Tek-Tips knowledge bank by clicking the FAQ link at the top of the page
[/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top