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,
 
Back
Top