Why not use GetMyWifiIp?
Though the best way (and the only reliable way) to test for an internet connection is:
Sub Test
Dim j As HttpJob
j.Initialize("test internet", Me)
j.Download("http://www.google.com")
j.GetRequest.Timeout = 10000
End Sub
Sub JobDone(Job As HttpJob)
If Job.JobName = "test internet" Then
InternetStatus(Job.Success)
End If
Job.Release
End Sub
Sub InternetStatus(Good As Boolean)
End Sub
You can change google with the relevant host.
It is better than checking the ip address as the fact that there is an ip address doesn't mean that there is an internet connection.