Hi,
C# version works for me:
System.Net.WebClient webClient = new System.Net.WebClient();
string value = new System.Text.UTF8Encoding().GetString(webClient.DownloadData("http://whatismyip.org/"));
What error were you getting?
Best,
Viv
>I think I am trying too hard, but I just can't figure this out and am hoping somebody can point me in the right direction.
>
>I am trying to obtain the ip address displayed on
http://whatismyip.org/ into my application. I found this snippet on the internet:
>
>
>Dim value As String
>Dim webClient As New System.Net.WebClient
>
>value = New System.Text.UTF8Encoding().GetString(webClient.DownloadData("http://whatismyip.org/"))
>
>
>but I am getting an error. Is there an easier way to do this? There is no HTML - the source is just the ip address.