loading

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.

Step 1: Connect Everything.

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

Step 2: On Your PC

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.

Step 3: Wake Up!

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!


<p>After I changed the interfaces file in my RPI I couldn't connect to my wifi. Can you please help me?</p>
<p>If you're using a wi-fi adapter and experiencing this problem, then I'm not sure how to help. But if you're using integrated wi-fi like I am (e.g. on the RPi 3) then to fix it, I just removed the first two lines under '# WIFI settings' in the code imported from interfaces.txt &amp; also removed everything under the '# adapter handler' section header.</p>
<p>I also didn't import the two lines of code above the '# WIFI settings' header since it was already included in the network interfaces file.</p>
<p>what wireless adapter did you use , it is the mini adapter that is shown in the image if so what wifi driver does it use many mini wireless adapters are not supported by the pi's software? so what type of adapter is that ,</p>
The adapter is this<br>:Tontec 150Mbps 11n USB Wifi Dongle Adapter for Raspberry Pi/Windows /Mac OS https://www.amazon.co.uk/dp/B010AKMF3Y/ref=cm_sw_r_other_awd_DMe2wbJ9T6XDY<br><br>This should work with ANY compatible wifi adapter. <br>I think only noobs software has no wifi support enabled and the driver was installed automatically. (do update and upgrade then reboot your pi) <br><br><br>Go to pi forums people often list what wifi adapter worked for them. Any of these should work great

About This Instructable

5,477views

33favorites

License:

Bio: I am passionate about technology, cycling and art. This would explain why my bike has more computing power than your average office. I'm an ... More »
More by quintaar:Build a ESP8266 Flash Adapter! Raspberry Pi As Wake on LAN Server $60 Custom corner office desk (USB & prototyping space) 
Add instructable to: