I am using the following library: Tamir.IPLib.SharpPcap.dll version 1.0.2.0.
Running the Tamir.IPLib.Test.Example1, that is (in very short):
PcapDeviceList devices = SharpPcap.GetAllDevices();
if(devices.Count<1)
{
Console.WriteLine("No device found on this machine");
}
foreach(PcapDevice dev in devices)
{
Console.WriteLine("PcapDescription : " + dev.PcapDescription);
Console.WriteLine("PcapName : " + dev.PcapName);
Console.WriteLine("PcapIpAddress : " + dev.PcapIpAddress);
i++;
}
On a Windows XP version 2002,I am able to obtain the description, name and IP address of my device without any problem.But if using Windows 7 Professional 64 bit SP1, i can obtain only the PcapDescription and PcapName correctly.PcapIpAddress returns instead 0.0.0.0.Why? and What can i do to get the correct IPAddress?
Thanks