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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CGI variable for computer name

Status
Not open for further replies.

spook007

Programmer
Joined
May 22, 2002
Messages
259
Location
US
I'm putting together an inventory maintenance web page in our intranet site. I'm trying to get coldfusion to capture the computer name so I can then forward it to a db that will then give me all the specs on the current computer viewing the page.

CGI.AUTH_USER is a variable I used in the past to know who is logged on, but is there a similar variable that would tell me the computer name? Thanks
 
I managed to find CGI.REMOTE_HOST. This variable will give you the IP address of the computer making the request, but my problem is that I'm running DHCP and can't use IP addresses to identify specific machines. I'll keep looking!
 
I don't think there is but try this...

<Cfdump var="#cgi#">

Maybe there's something in there that will help you. Just run the code and it will dump all the cgi vars and their values for output.

ALFII.com
---------------------
If this post answered or helped to answer your question, please reply with such so that forum members with a similar question will know to use this advice.
 
If I have the ip address is there anyway I can do a look up for the computer name? Any guesses! :)
 
I'd say probably not but I've never put a whole lot of effort into trying..

You might ask the asp guys if ASP has a way.. being that ASP is M$ and all..

If asp can do it, you can use cookies or something to pass the data to your CF.. its not fun but it might work.

ALFII.com
---------------------
If this post answered or helped to answer your question, please reply with such so that forum members with a similar question will know to use this advice.
 
Just a thought but how about a MAC address or somekind of unique identifier... anyway to get coldfusion to capture that?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top