Getting the server hostname programmatically
<cfset inet = CreateObject("java", "java.net.InetAddress")> <cfset inet = inet.getLocalHost()> <cfoutput>#inet.getHostName()#</cfoutput>
Like this? Follow me ↯Tweet Follow @pfreitag
Getting the server hostname programmatically was first published on December 02, 2003.
The FuseGuard Web Application Firewall for ColdFusion & CFML is a high performance, customizable engine that blocks various attacks against your ColdFusion applications.