Create(parse) IP address from string : IP Address : Network C# Examples


C# Examples » Network » IP Address »

 

Create(parse) IP address from string









    
using  System;
using  System.Net;

class  MainClass
{
        public  static  void  Main()
        {
                IPAddress  test1  =  IPAddress.Parse("192.168.1.1");

                Console.WriteLine(test1);
        }
}
    
   
  
   



Output

192.168.1.1


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Network
» IP Address