October 2, 2008

Finding the hostname with CFMX 8

<cfset inetObj = CreateObject("java", "java.net.InetAddress")>

<cfset inet = inetObj.getLocalHost()>

<cfoutput>#inet#</cfoutput>