When I run this script, I am getting the "websites" script, not the SERVER'S IP Address.
What I am trying to do is verify which server the website is sitting on, but looking at the servers IP address, now that may not be the best way to do this, if someone knows of a better way to IDENTIFY a machine via CF Code .. (and not CFExecute) I would love to hear it. Thanks!! Paul Giesenhagen QuillDesign 417-885-1375 http://www.quilldesign.com SiteDirector Shopping Cart Software ----- Original Message ----- From: "John Beynon" <[EMAIL PROTECTED]> To: "CF-Talk" <cf-talk@houseoffusion.com> Sent: Friday, August 18, 2006 2:31 AM Subject: Re: OT: Finding Server IP > <cfscript> > function GetServerIP() { > var iaclass=""; > var addr=""; > > // Init class > iaclass=CreateObject("java", "java.net.InetAddress"); > > //Get Local host variable > addr=iaclass.getLocalHost(); > > // Return ip address > return addr.getHostAddress(); > } > </cfscript> > > john. > > On 8/18/06, Ryan, Terrence <[EMAIL PROTECTED]> wrote: >> Neil: The CGI Scope would reveal the ip address that the request came >> through, not the base ip of the server. >> >> Paul: You say "not look it up in the operating system tools" does that >> mean that using cfexecute to call ipconfig.exe is out? >> >> >> Terrence Ryan >> Senior Systems Programmer >> Wharton Computing and Information Technology >> >> E-mail: [EMAIL PROTECTED] >> >> -----Original Message----- >> From: Robertson-Ravo, Neil (RX) >> [mailto:[EMAIL PROTECTED] >> Sent: Friday, August 18, 2006 2:14 AM >> To: CF-Talk >> Subject: Re: OT: Finding Server IP >> >> This info should in the CGI scope. >> >> >> >> -----Original Message----- >> From: Paul Giesenhagen >> To: CF-Talk >> Sent: Fri Aug 18 06:21:28 2006 >> Subject: OT: Finding Server IP >> >> I am wanting to find out what the SERVER IP address (main IP) of the >> server my application is running on, not the website's IP address but >> it's server. >> Our server runs a number of websites and they all have different IP >> addresses .. those are not what I am interested in... I want to find out >> the SERVER that they are running on's IP address (coding method) not >> look it up in the operating system tools. >> >> >> Paul Giesenhagen >> QuillDesign >> 417-885-1375 >> http://www.quilldesign.com >> SiteDirector Shopping Cart Software >> >> >> >> >> >> >> >> >> >> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:250282 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4