Get IP Address by parsing website
Category:C#, VB.NET, ASP.NET
Version Compatibility: Visual Basic.NET
This class wil retreive the IP address by downloading the source of www.whatismyip.com and saving it to temp. A streamreader will read the contents and find the IP. It is returned as a string. Usage: Dim getIPObject As New getIP.obtainIP Dim yourIPAddress As String = getIPObject.getIPstring() MessageBox.Show(yourIPAddress)
Instructions: Copy the declarations and code below and paste directly into your VB project.