I want to retrieve the MAC Address with IP Address…
var nics = NetworkInterface.GetAllNetworkInterfaces()
.Where(ipProp => ipProp.GetIPProperties().UnicastAddresses
.Where(ip => ip.Address.ToString().Equals("192.168.1.111"))
);
I am getting an error:
“Cannot implicitly convert type ‘System.Collections.Generic.IEnumerable’ to ‘bool'”
How do I fix this?
1 Answer