C# IP地址与byte转换
电脑版发表于:2020/2/3 11:37
直接贴代码:
string ip = "47.102.151.54"; byte[] byts = IPAddress.Parse(ip).GetAddressBytes(); IPAddress iPAddress = new IPAddress(byts);
直接贴代码:
string ip = "47.102.151.54"; byte[] byts = IPAddress.Parse(ip).GetAddressBytes(); IPAddress iPAddress = new IPAddress(byts);