public static string FindMacFromIPAddress(string ip) { InitializeGetIPsAndMac(); IPAndMac m = list.SingleOrDefault(x => x.IP == ip); if (m == null) { return(""); } return(m.MAC); }
public static string FindIPFromMacAddress(string macAddress) { InitializeGetIPsAndMac(); IPAndMac m = list.SingleOrDefault(x => x.MAC == macAddress); if (m == null) { return(""); } return(m.IP); }