How to read own IP address (internet)

Rexy

Member
Joined
Jan 16, 2007
Messages
14
Programming Experience
1-3
I need a way to read the IP address (Web IP Address) from the computer the software are installed on.

How to do that??

VB.Studio-2005
 
Last edited:
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/")
 
Back
Top