Wake on LAN Any Computer Over Wireless Network

by notenoughtech in Circuits > Raspberry Pi

24820 Views, 33 Favorites, 0 Comments

Wake on LAN Any Computer Over Wireless Network

DSC_2235.JPG
WOL Server - Use your RPI to wake up your PC

This tutorial is no longer up to date due to changes in the Raspbpian image. Please follow the updated tutorial here:

https://www.instructables.com/id/Raspberry-Pi-As-Wake-on-LAN-Server

WOL is present nearly on all Ethernet ports nowadays. This isn't the truth for the WIFI cards, not as common and more on the expensive side.

Using Raspberry PI, wireless adapter and Ethernet cable you can create the WOL server and wake your pc up over the network regardless of how it is hooked up to the network.

Requirements:

  • Raspberry PI
  • Ethernet cable
  • Wi-Fi adapter for R PI

It is a simple project and requires only a basic knowledge to follow.

Connect Everything.

DSC_2233.JPG
etc network interfaces  v5.png

Your Raspberry should be connected via Ethernet to the PC you want to wake up, Wifi adapter should be connected to R PI as well and linked to your WIFI.

You will be asked to modify few files on the Raspberry to make this work, and set up the local connection with your pc.

Lets start with a Raspberry:

Install wakeonlan sudo apt-get install wakeonlan
Navigate to /etc/network/interfaces sudo nano /etc/network/interfaces
Add the configuration from interfaces.txt changing your WIFI information. This will assure that the RPI is using WIFI adapter for network address and Ethernet for LAN connectivity with your PC
Reboot your RPI

Downloads

On Your PC

Untitled-1.jpg
Untitled-2.jpg
Untitled-3.jpg
Untitled-4.jpg
Untitled-5.jpg
Untitled-6.jpg
Untitled-7.jpg
Untitled-8.jpg

On your PC go to networks.

You will need enable WOL, save your PC's Mac address, and configure your IPv4 settings.

Enable your WOL in power management settings on Windows, then go to the network card configuration and enable WOL support. If you are unable to see WOL settings you may want to go to BIOS to enable it.


Set your IPv4 to:

  • IP: 10.0.0.2
  • Subnet mask: 255.255.255.0
  • Default gateway: 10.0.0.1

When this is all done, reboot your PC and RPI.

Wake Up!

mac.jpg
DSC_2234.JPG

To wake up your PC from sleep - you will need to send an SSH command to your RPI (you can do this in multiple ways - check my you youtube channel for issuing commands like this from mobile)

To wake up your PC use the following SSH command (replace underlined bit with your mac address):

wakeonlan -i 10.0.0.2 aa:bb:cc:dd:ee:ff:gg:hh


And there you go! You have additional superpowers over your pc!