[VB.NET] Get Public IP Address on Visual Basic 2010
This is a tutorial on how to get your Public IP address on Visual Basic.
### START OF CODE ###
Imports System.Net
Public Class Form1
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
MsgBox(GetIP)
End Sub
Function GetIP() As String
Dim IP As New WebClient
Return IP.DownloadString(“http://automation.whatismyip.com/n09230945.asp”)
End Function
End Class
### END OF CODE ###
The part you have to copy and paste: http://automation.whatismyip.com/n09230945.asp
Written Tutorial: http://whydomy.com/2012/10/22/vb-net-visual-basic-2010-get-public-ip/
Subscribe if this helped, and check out whydomy.com/
ip address