Wake On Lan with a Raspberry Pi

Magic packet

TLDR: A magic packet is a string of numbers and letters in a pattern that computers recognize to mean “wake up.”

The network map we are going to achieve

Set up Raspberry Pi

Balena Etcher screenshot
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
ssid="your wifi name here"
psk="your passwork here"
#!/bin/bash# Replace "AA:BB:CC:DD:EE:FF" with the MAC address

echo "Going to wake up your PC..... <3"
sudo etherwake -i wlan0 AA:BB:CC:DD:EE:FF
-rwxr-xr-x 1 pi pi 364 May 15 02:36 wol.sh

Network Setup

Set Computer to Allow Wake on Lan

Pull the Trigger, Dora.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store