Wake On Lan

Raspberry Pi Wake on lan

 

I found a nice tutorial on the internet to use your Raspberry Pi as a Wake On Lan Relay, Because my modem from my ips, aint pass the 'magic packet' trough. 

First download: wol-relayd.tar

 
Then unpack the .tar file and copy the unpacked folder to your pi. i used WinSCP.


------------------------------------------------------------------------------------------------------------
Other method: wget http://www.raspberrypihelp.net/downloads/wol-relayd.tar
[Enter]
tar xvf wol-relayd.tar
[enter]
------------------------------------------------------------------------------------------------------------


Use putty to log in your pi, navigate to the wol-relayd Folder.

Edit the wol-relayd.conf file by using the following command: sudo nano wol-relayd.conf

Put the MAC adres of the computer you want to start.  In the following format  00:00:00:00:00:00

 

Control + x when you are done. And save the file.

Now move to the wol-relayd folder: 

cd wol-relayd
[ENTER]

Now typ: sudo chmod 755 wol-relayd.init.d

[enter]

Now typ "ifconfig" and look for "inet addr" this is your local ip adres of your RaspberryPi. And  Bcast: is your broadcast adress.
Remember the Bcast adress.

 

Now typ: sudo nano wol-relayd.init.d

Look for "RECVPORT" and "BROADCAST_IP"

Change the RECVPORT to 9

And change the broadcast IP to the Bcast adres what you saw @ ifconfig.

Hit control + x exit. Save the file.

 Now typ:

make

[enter]


make install

[enter]

sudo /etc/init.d/wol-relayd start

[enter]

DONE!


I use this app on my android phone to put my pc on. 

Mac adres: Mac adres of my pc that i want to turn on.
Ip or domain: IP ADRES OF THE RASPBERRY PI
Port: 9

SOURCE: http://www.trans-omni.co.uk/pi/wol-relayd/

99% Of this tutorial is Copy/past. Only the chmod commando and some extra explanation about Bcast adress is of my own.

 

I use the WOL option with the Openvpn tutorial. Are you not, then you must open port 9 in your router/modem. and accept the port in your firewall.