J
Jon Berry
I wrote a little app to get the IP address of the local machine like so:
IPHostEntry local = Dns.GetHostEntry(hostName);
foreach (IPAddress ipaddress in local.AddressList)
{
Console.WriteLine(ipaddress);
}
When I tested this on my XP Machine I get an IP address but on my Vista
Machine
I'm getting an IP and bunch of Mac Addresses (at least that's what I think
they are).
fe80:
950:865b: blah, blah, blah
Is there a way to filter this so I only get IP addresses?
Thanks!
IPHostEntry local = Dns.GetHostEntry(hostName);
foreach (IPAddress ipaddress in local.AddressList)
{
Console.WriteLine(ipaddress);
}
When I tested this on my XP Machine I get an IP address but on my Vista
Machine
I'm getting an IP and bunch of Mac Addresses (at least that's what I think
they are).
fe80:

Is there a way to filter this so I only get IP addresses?
Thanks!