Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

WOL add on?

Featured Replies

As the tittle suggests really. Does anybody know of any add on to allow a wake on Lan packet to be sent. Like the wolcmd for windows.

If you know java you could modify this code and create your own:

import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;

public class WakeOnLan {
   public static final int PORT = 9;
   private static byte[] getMacBytes(String macStr)
           throws IllegalArgumentException {
       byte[] bytes = new byte[6];
       String[] hex = macStr.split("(\\\\-)");
       if (hex.length != 6) {
           throw new IllegalArgumentException("Invalid MAC address.");
       }
       try {
           for (int i = 0; i < 6; i++) {
               bytes[i] = (byte) Integer.parseInt(hex[i], 16);
           }
       } catch (NumberFormatException e) {
           throw new IllegalArgumentException("Invalid hex digit in MAC address.");
       }
       return bytes;
   }
   public static void wol(String ipStr, String macStr) {
       try {
           byte[] macBytes = getMacBytes(macStr);
           byte[] bytes = new byte[6 + 16 * macBytes.length];
           for (int i = 0; i < 6; i++) {
               bytes[i] = (byte) 0xff;
           }
           for (int i = 6; i < bytes.length; i += macBytes.length) {
               System.arraycopy(macBytes, 0, bytes, i, macBytes.length);
           }

           int index = ipStr.lastIndexOf('.');
           String broadcast = ipStr.substring(0, index);
           InetAddress address = InetAddress.getByName(broadcast + ".255");
           DatagramPacket packet = new DatagramPacket(bytes, bytes.length,
                   address, PORT);
           DatagramSocket socket = new DatagramSocket();
           socket.send(packet);
           socket.close();

           System.out.println("Wake-on-LAN packet sent to " + macStr);
       } catch (Exception e) {
           System.out.println("Failed to send Wake-on-LAN packet:" + e.getMessage());
           System.exit(1);
       }
   }
   private WakeOnLan() {
   }
}

If your using xbmc it has an add-on for it  ;D

  • Author

Thanks. I don't know java but I'll have a good go, got to learn sometime. Right? It's not for xmbc.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.