Getting the server hostname in CFML
By Pete Freitag
<cfset inet = CreateObject("java", "java.net.InetAddress")> <cfset inet = inet.getLocalHost()> <cfoutput>#inet.getHostName()#</cfoutput>
Getting the server hostname in CFML was first published on December 02, 2003.
The Fixinator Code Security Scanner for ColdFusion & CFML is an easy to use security tool that every CF developer can use. It can also easily integrate into CI for automatic scanning on every commit.