Parse an IPAddress

image_pdfimage_print
   
  
using System;
using System.Net;
class AddressSample {
    public static void Main() {
        IPAddress test1 = IPAddress.Parse("192.168.1.1");
        Console.WriteLine("The test address is: {0}",  test1.ToString());
    }
}

   
     


This entry was posted in C# Network. Bookmark the permalink.