Wow that was a fast response! I knew I had to do a lookup of sorts on the
local machine name, but I'm not too familiar with the System.Net.DNS
classes.
I posted the code for this one week ago in the same forum:
Imports System.Net
Dim ipAddress As IPHostEntry = Dns.GetHostByName(Dns.GetHostName)
Me.Text = ipAddress.AddressList.GetValue(0).ToString
I hope this helps,
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.