public WakeOnLan setNoPackets(int noPackets) {
        if (noPackets <= 0)
            throw new IllegalArgumentException("Invalid number of packets to send " + noPackets);
        this.noPackets = noPackets;
        return this;
    }
Sets the number of packets to send, this is to overcome the flakiness of networks

@param noPackets - the numbe of packets to send
@return this object to allow chaining
library/src/main/java/com/stealthcopter/networktools/WakeOnLan.java