Local IP Address?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,

What's the best way to retreive the local IP addresses in a .NET winforms
app?

Thanks!
 
SPAM Catcher,

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.

Ask a Question

Similar Threads


Back
Top