Exemple #1
0
 public static string GetMac(string Ip)
 {
     try
     {
         return(MacResolver.GetRemoteMAC(Ip));
     }
     catch (Exception ex)
     {
         return(string.Empty);
     }
 }
Exemple #2
0
 public static string GetMac(HttpRequestMessage request)
 {
     try
     {
         var clientIP = GetClientIp(request);
         return(MacResolver.GetRemoteMAC(clientIP));
     }
     catch (Exception ex)
     {
         return(string.Empty);
     }
 }