Whatever message this page gives is out now! Go check it out!

IsIPv6

Last update:
May 18, 2026

Description

Determines whether the host supports IPv6.

Returns

True if the host supports IPv6.

Category

Syntax

IsIPv6(hostname)

Parameters

ParameterDescription
hostname
IP address to check.

See also

History

ColdFusion 9: Added this function

Usage

When you use this function to verify if the remote host supports IPv6, pass the hostname and not the IP address.This function applies only if the server that places the request is IPv6-enabled.
The following example checks whether the localhost supports IPv6:

Example

<cfset hostname="localhost"> 
<cfset test=IsIPv6()> 
<cfif test> 
<cfoutput>localhost supports IPv6</cfoutput> 
</cfif>
The following example checks whether the remote host supports IPv6:
<cfset hostname="remote hostname"> 
<cfset test=IsIPv6(hostname)> 
<cfif test> 
<cfoutput>#hostname# supports IPv6</cfoutput> 
</cfif>

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page