Check if IP address is an IPv6 Teredo address in CSharp

Description

The following code shows how to check if IP address is an IPv6 Teredo address.

Example


using System;/*w w w . jav  a  2 s.co m*/
using System.Net;
using System.Net.Sockets;

public class Example
{
   public static void Main()
   {
      IPAddress address = IPAddress.Parse("127.0.0.1");
      Console.WriteLine(address.IsIPv6Teredo);

   }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    Network »




IP
Web Client