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...
 

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