Dim s As String
Dim urls As New List(Of String) From {"http://ipinfo.io/ip", "http://ifconfig.me", "http://members.3322.org/dyndns/getip", "http://myip.ipip.net"}
For Each url As String In urls
Dim hc As New HttpClient(url)
hc.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36"
hc.GetInformation()
Output.Show("【" & url & "】" & hc.StatusCode)
If hc.StatusCode = "200" Then
Dim a As String = hc.GetData()
If a > "" Then
s = "请检查数据库白名单是否含【" & url & "】返回本机ipv4地址:【" & a & "】。"
Exit For
End If
End If
hc.Close()
Next
Output.Show("s:" & s)