vb get ip address

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

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

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

More questions on [categories-list]

Similar Posts