Many web pages display this information, so you can load such a page and read it. Example with WebClient class:
VB.NET:
Dim web As New Net.WebClient
web.Headers(Net.HttpRequestHeader.UserAgent) = "VB.Net client"
Dim ip As String = web.DownloadString("http://www.whatismyip.org/")
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.