getLocalhostIP

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

getLocalhostIP() → returns string

Examples
Sample code invoking the getLocalhostIP function

Here we've example to get localhost ip address using getLocalhostIP()

writeOutput(getLocalhostIP());

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub