Multihomed addressing

  • Thread starter Thread starter Rein Petersen
  • Start date Start date
R

Rein Petersen

Hi Folks,

Wondering if there is a class in .net that makes it easy to find all the ip
information of the local machine without resorting to the registry... the
local machine can be multihome addressed.

Thanks, Rein
 
Hi Folks,

Wondering if there is a class in .net that makes it easy to find all the ip
information of the local machine without resorting to the registry... the
local machine can be multihome addressed.

Thanks, Rein

Do you mean like the Dns class? Something like:

using System.Net;

....

public static void Main()
{
IPHostEntry hostInfo = Dns.Resolve(Dns.GetHostName());

for (int i = 0; i < hostInfo.AddressList.Length; i++)
{
Console.WriteLine(hostInfo.AddressList);
}
}
 
Hi Tom,

No, was referring to all ip's defined in IP connection properties on all
adapters in the local system... Hoping there is a convenient class...
 
Back
Top