狐表以外的技术问题,问chatgpt更快:
此主题相关图片如下:2.jpg
稍微改一下成狐表用的代码:
Dim hostName As String = System.Net.Dns.GetHostName()
Dim ipAddresses() As System.Net.IPAddress = System.Net.Dns.GetHostAddresses(hostName)
For Each ipAddress As System.Net.IPAddress In ipAddresses
If ipAddress.AddressFamily = System.Net.Sockets.AddressFamily.InterNetworkV6 Then
Output.Show("IPv6 Address: " & ipAddress.ToString())
End If
Next
执行结果:
IPv6 Address: fe80::1f98:fe2a:180b:eb61%6