[VB.NET] Getting your own IP 10-26-2015, 08:37 AM
#1
getting your own ip in vb.net
Code:
Private Function GetMyIP()
Dim ExternalIP As String = "Null"
Try
ExternalIP = (New WebClient()).DownloadString("http://checkip.dyndns.org/")
ExternalIP = (New Regex("\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}")) _
.Matches(ExternalIP)(0).ToString()
Catch exc As Exception
ExternalIP = "Null"
End Try
Return ExternalIP
End Function

![[+]](https://sinister.li/images/modern/collapse_collapsed.png)



idk VB.gay