Answers for "vb.net get external ip address"

VBA
0

VB get external IP address

Private Function GetExternalIp() As String
    Try
        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}")) _
                     .Matches(ExternalIP)(0).ToString()
        Return ExternalIP
    Catch
        Return Nothing
    End Try
End Function
Posted by: Guest on January-20-2021

Code answers related to "VBA"

Browse Popular Code Answers by Language