This would be on a PC that is on a LAN, so the winsock control would give me the "local" and not "external" ip. At least I think that is what would happen.
<Caveman Technology>
An extremely crude method might be to IPCONFIG /ALL to a text file and then parse that for the information you want.
</Caveman Technology>
Andy
"Logic is invincible because in order to combat logic it is necessary to use logic." -- Pierre Boutroux
"A computer program does what you tell it to do, not what you want it to do." -- Greer's Third Law
With New RegExp
.MultiLine = True
.Pattern = "(\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3})"
If .Test(myDoc) Then
getExternalIP = .Execute(myDoc).Item(0).SubMatches(0)
End If
End With
End Function
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.