If your running on a win machine you could use cfregistry to look at
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveCompu
terName

Or maybe cfexecute ipconfig and parse the results..


HTH



Mikey

=========================================
http://www.phonebin.com
"From Phone to Web in minutes" 


-----Original Message-----
From: Shahzad.Butt [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 26, 2003 11:45
To: CF-Talk
Subject: Get Server Name


How can I get server name in Coldfusion (MX)???

#CGI.Server_Name# doesn't give name of server but DNS which I am using to
access my website. By name of server I mean physical name (OR IP) of machine
where my CF server is sitting.



Shahzad Butt (Development Engineer)

JJ FastFood Distribution Ltd.
Office:  +44 (0) 1992 701 722
Mobile: +44 (0) 7803 584 873
Fax:     +44 (0) 1992 701 604

7 Solar Way, Innova Park, Enfield, London, EN3 7XY

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to