Re: [cfaussie] Re: getting server name of server

2010-08-12 Thread Brett Payne-Rhodes
I was going to suggest the cgi variables - http_host and server_name but a little bit of testing shows that these are related to the URL rather than the name of the physical machine which is what you want given the solution below. Thanks, could be very useful... B) On Fri, Aug 13, 2010 at 11:2

[cfaussie] Re: getting server name of server

2010-08-12 Thread BarryC
No matter! I have found the answer; Createobject('java','java.net.InetAddress').getLocalHost().getHostName() I knew I'd find it as soon as I posted on here :) On Aug 13, 3:21 pm, BarryC wrote: > Hi, > > We have several servers in a cluster, but I am wondering how to get > the name of the server