I used to use this code to get my internal and externam IP :
- Code: Select all Expand view RUN
- WsaStartUp()
cVar1 := GetHostByName( GetHostName() )
WsaCleanUp()
oHttp := CreateObject("winhttp.winhttprequest.5.1")
oHttp:Open("GET","http://www.dnsstuff.com/docs/ipall",.f.)
oHttp:Send()
cVar2 := oHttp:ResponseText()
cVar2 := StrExtract(cVar2,"Your IP Address: <strong class="+CHR(34)+"ipBlock"+CHR(34)+">","</strong>")
Until a short while ago, it use to work just fine. Now it doesn't work anymore.
Anyone any idea?
Thanks.