public static void sendWakeOnLan(final String ipStr, final String macStr, final int port, final int timeoutMillis, final int packets) throws IllegalArgumentException, IOException {
        if (ipStr == null) throw new IllegalArgumentException("Address cannot be null");
        InetAddress address = InetAddress.getByName(ipStr);
        sendWakeOnLan(address, macStr, port, timeoutMillis, packets);
    }
Send a Wake-On-Lan packet

@param ipStr         - IP String to send wol packet to
@param macStr        - MAC address to wake up
@param port          - port to send packet to
@param timeoutMillis - timeout (millis)
@param packets       - number of packets to send

@throws IllegalArgumentException - invalid ip or mac
@throws IOException - error sending packet
library/src/main/java/com/stealthcopter/networktools/WakeOnLan.java