Wake on LAN code help

Here is my entire program

#include <SPI.h>

#include <Dhcp.h>
#include <Dns.h>
#include <Ethernet.h>
#include <EthernetClient.h>
#include <EthernetServer.h>
#include <EthernetUdp.h>


#include <Servo.h>





 // The magic packet data sent to wake the remote machine. Target machine's
  // MAC address will be composited in here.
   EthernetUDP Udp;
   byte mac[] = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF };
   //IPAddress ip(192, 168, 1, 1);
   byte ip[] = {192, 168, 1, 1};

Servo powerServo;

//Set up pin on the arduino board for i/o

int lightPin = A0;
int lightReading = lightReading;
int localPort = 8888;





void setup() {
 powerServo.attach(9);
 Serial.begin(9600);
 
 Ethernet.begin(mac, ip);
 Udp.begin(localPort);



 
}

void loop() {
  

  if (lightReading >= 1000) {
 
  }
lightReading = analogRead(lightPin);
Serial.println(lightReading);


if (lightReading < 1000)
{
 WoL();
}
  
}


void WoL(){

  int i = 0;
  byte all[102];

    int magicPackeSize = Udp.parsePacket();
 Udp.beginPacket(Udp.remoteIP(), Udp.remotePort());
 
 for (i = 0; i < 102; i++){
   Udp.write(all[i]);
   };
  
  
 Udp.endPacket();

}

And here is the part I least understand:

void WoL(){

  int i = 0;
  byte all[102];

    int magicPackeSize = Udp.parsePacket();
 Udp.beginPacket(Udp.remoteIP(), Udp.remotePort());
 
 for (i = 0; i < 102; i++){
   Udp.write(all[i]);
   };
  
  
 Udp.endPacket();

I am trying to send a magic packet to my computer when a certain level of brightness is achieved. I know the if statements work because I first plugged in an LED and made it turn on when the lighReading was over 1000.

When I tried it with the WoL function instead of the LED, the Tx light on the Arduino Uno I am using begins flashing but the computer did not wake. I appreciate any and all help.

Please ignore any of the Servo code in the main program...