GetLocalHostIP

Description

Returns the localhost IP address, which is 127.0.0.1 for IPv4 and ::1 for IPv6 addresses.

Returns

The localhost IP address.

Function syntax

GetLocalHostIP()

See also

IsLocalHost

History

ColdFusion MX 7.01: Added this function.

Example

<h3>GetLocalHostIP Example</h3> 
 
<cfoutput>The localhost IP address is #GetLocalHostIP()#.</cfoutput>