IPAddress.IsLoopback : IPAddress « System.Net « C# / C Sharp by API






IPAddress.IsLoopback

using System;
using System.Net;

class MainClass
{
    public static void Main()
    {
      IPAddress test2 = IPAddress.Loopback;

      if (IPAddress.IsLoopback(test2))
          Console.WriteLine("The Loopback address is: {0}", test2.ToString());
      else
          Console.WriteLine("Error obtaining the loopback address");

    }
}

 








Related examples in the same category

1.IPAddress.Any
2.IPAddress.Broadcast
3.IPAddress.HostToNetworkOrder()
4.IPAddress.Loopback
5.IPAddress.None
6.IPAddress.Parse(String ipAddress)