Hi I did have this code working some time ago and now for some reason it just returns a blank message box. In fact I have been trying to get this back running for many hours now and I am left with little option but to ask outside help. It is such a shame as this used to run nicely. I may have changed some of code by mistake. If any one would mind checking this code for me to see if at least that is correct I would be grateful. The Inet is set to default and I have tried different ports, my internet routes through a router, I have tried both with router firewall on and off and with port forwarding enabled for the relevent ports. Thanks in advance
Private Function RealIP()
On Error GoTo err
Dim before As String
Dim sitehtml As String
Dim myIP As String
Dim after As String
sitehtml = Inet.OpenURL("http://www.ip-adress.com/")
While Inet.StillExecuting
DoEvents
Wend
DivideText sitehtml, "My IP address: ", "</span></b></font></span>", before, myIP, after
RealIP = myIP
Exit Function
err:
RealIP = "ERROR: " & Error
End Function