Is Loopback IP address : IP Address : Network C# Examples


C# Examples » Network » IP Address »

 

Is Loopback IP address









    
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");

        }
}
    
   
  
   



Output

The Loopback address is: 127.0.0.1


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Network
» IP Address