Answers for "get current ip vb .net"

VBA
0

vb get ip address

Private Sub GetIPAddress()

Dim strHostName As String

Dim strIPAddress As String



strHostName = System.Net.Dns.GetHostName()

strIPAddress = System.Net.Dns.GetHostByName(strHostName).AddressList(0).ToString()


MessageBox.Show("Host Name: " & strHostName & "; IP Address: " & strIPAddress)

End Sub
Posted by: Guest on July-19-2020

Code answers related to "VBA"

Browse Popular Code Answers by Language