IPv6 Support Using Ping Component


IPWorks supports using the Ping component with IPv6 addresses. To ping a remote host using IPv6, you must configure the component correctly and, in some Windows versions, specify the ZoneId and firewall settings.

To ping an IPv6 address with the Ping component from the IPWorks toolkit, follow these steps:

Use the IPv6 Address

Set the IPv6 address of the remote host you want to ping. You must also enable the UseIPv6 configuration setting.

Example for Windows XP and Windows Server 2003

In these versions, the IPv6 address must include the ZoneId of your local interface:

Ping1.Config("UseIPv6=true");
Ping1.LocalHost = "fe80::21a:a0ff:fe7b:4d22";
Ping1.PingHost("fe80::cc64:9f01:5890:85e4%6");

In the example above:

  • fe80::cc64:9f01:5890:85e4 is the IPv6 address of the remote host.
  • %6 is the ZoneId of the local interface. You can find your ZoneId by running ipconfig /all from the Windows command prompt.
  • The LocalHost property is set to the IPv6 address of the interface on your machine that you want to use.

Note The .NET edition does not require setting this property.

Firewall Configuration for Windows Vista, Server 2008, and Later

On Windows Vista or Windows Server 2008, ICMP requests are disabled by default. To allow Ping, configure the firewall either from the Advanced Settings section or via the command prompt:

netsh firewall set icmpsetting 8 enable

After completing these steps, you can successfully use the Ping component with IPv6 addresses on supported Windows versions.

We appreciate your feedback. If you have any questions, comments, or suggestions about this article please contact our support team at support@nsoftware.com.