Free Programming Tutorials & Source Code

 
  • Increase font size
  • Default font size
  • Decrease font size
Home Visual Basic.NET Get Local IP Address List Using VB.NET

Get Local IP Address List Using VB.NET

E-mail
(1 vote, average: 4.00 out of 5)
Get local IP address list using VB.NET.

Required Namespace:

Imports System.Net

and the code:

Dim computername As String = Dns.GetHostName
Dim localIPs As IPAddress() = Dns.GetHostAddresses(computername)