提问
IPv4与IPv6如何转化
回答
- 字符串转ip
var addr=IPAddress.Parse(ipAddress);
- v4转v6
addr.MapToIPv6();
参考
https://learn.microsoft.com/en-us/dotnet/api/system.net.ipaddress.parse?view=net-7.0
标签:addr,转化,如何,IPv4,IPv6,net From: https://www.cnblogs.com/wuhailong/p/17535541.html