IPAddress

创建IP地址

IPAddress ipAddress = IPAddress.Parse("234.34.5.3");
byte[] address = ipAddress.GetAddressBytes();//得到四个位置上的具体值
string ipString = ipAddress.ToString();//得到ip的字符串

results matching ""

    No results matching ""