IPAddress.Parse(String ipAddress)
using System; using System.Net; class MainClass { public static void Main() { IPAddress test1 = IPAddress.Parse("192.168.1.1"); Console.WriteLine(test1); } }