private static void GetHwAddr(string ipAddress)
        {
            Console.WriteLine("Getting hardware ethernet address for: ({0})", ipAddress);
            WakeOnLanManager wolManager = new WakeOnLanManager();

            byte[] ip = wolManager.GetIpBytes(ipAddress);
            byte[] a  = wolManager.GetHardwareAddress(new IPAddress(ip));
            Console.WriteLine("Hardware address: {0:x}:{1:x}:{2:x}:{3:x}:{4:x}:{5:x}", a[0], a[1], a[2], a[3], a[4], a[5]);
        }
        private static void Wakeup(string hwAddr, string wakeupIP, string targetIP, string timeout)
        {
            Console.WriteLine("Wakeup system: IP:({0}) hwAddr:{1} to:{2})", wakeupIP, hwAddr, targetIP);
            WakeOnLanManager wolManager = new WakeOnLanManager();

            if (wolManager.WakeupSystem(hwAddr, wakeupIP, targetIP, Int32.Parse(timeout)))
            {
                Console.WriteLine("wakeup successful");
            }
            else
            {
                Console.WriteLine("wakeup FAILED!");
            }
        }
 private static void Wakeup(string hwAddr, string wakeupIP, string targetIP, string timeout)
 {
   Console.WriteLine("Wakeup system: IP:({0}) hwAddr:{1} to:{2})", wakeupIP, hwAddr, targetIP);
   WakeOnLanManager wolManager = new WakeOnLanManager();
   if (wolManager.WakeupSystem(hwAddr, wakeupIP, targetIP, Int32.Parse(timeout)))
   {
     Console.WriteLine("wakeup successful");
   }
   else
   {
     Console.WriteLine("wakeup FAILED!");
   }
 }
 private static void GetHwAddr(string ipAddress)
 {
   Console.WriteLine("Getting hardware ethernet address for: ({0})", ipAddress);
   WakeOnLanManager wolManager = new WakeOnLanManager();
   byte[] ip = wolManager.GetIpBytes(ipAddress);
   byte[] a = wolManager.GetHardwareAddress(new IPAddress(ip));
   Console.WriteLine("Hardware address: {0:x}:{1:x}:{2:x}:{3:x}:{4:x}:{5:x}", a[0], a[1], a[2], a[3], a[4], a[5]);
 }