Get Host and Ip address of local Computer

  • Dim strHostName As String = System.Net.Dns.GetHostName()

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


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

Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook

Popular Posts of the Week