VB get external IP address

The solution for “VB get external IP address” can be found here. The following code will assist you in solving the problem.

Private Function GetExternalIp() As String
Dim ExternalIP As String
ExternalIP = (New WebClient()).DownloadString(“http://checkip.dyndns.org/”)
ExternalIP = (New Regex(“\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}”)) _
Return ExternalIP
Return Nothing
End Try
End Function

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

Similar Posts