Wake On Lan with a Raspberry Pi

Magic packet

  • Requires destination computer MAC address
  • Does not provide a delivery confirmation
  • May not work outside of the local network
  • Requires hardware support of Wake-on-LAN on destination computer
  • Most 802.11 wireless interfaces do not maintain a link in low power states and cannot receive a 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

Flash the Raspberry Pi

  1. The image I used is called Raspbian Jessie lite. Click to download the zip. When it has downloaded, unzip the file. It should be several gigabytes large.
  2. The software I used to flash is called Balena Etcher. Click the link to download. (I’m using Balena over the official Raspberry Pi Imager because it corrupted my SD card and I ended up using Balena anyway to re-flash. Maybe it’ll work for you! 🤷‍♀)
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

Put the raspberry pi on a static ip

Port Forwarding

Get a Domain to your network address

Set Computer to Allow Wake on Lan

Pull the Trigger, Dora.




Software Engineer — Blockchain, Cybersecurity, and Commercial Space

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Dart and Cloud Run

List Comprehension

Flutter | Dart — How to convert a date/time string to a DateTime object in Dart

When to choose Progressive Web Apps Over Hybrid apps

3 Features that Kotlin can help to write Android custom views

A Brief Introduction To Physics In Unity — When To Use OnTrigger vs OnCollider

Stepping into placid waters#307

Programming Books for Technical Writers

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
Juliana Mei

Juliana Mei

Software Engineer — Blockchain, Cybersecurity, and Commercial Space

More from Medium

Creating a New dictionary for my Kindle (Spanish-Traditional Chinese)

Garmin Tactix 7 Pro Ballistics

How to get a Warp terminal invite code?

How to Install Arduino CNC SHIELD GRBL