Page 1 of 1

iPhone - Wake on Lan/Wan and remote sleep/shutdown Lan/Wan

PostPosted: Sat Apr 04, 2015 11:26 pm
by Redleh
This tutorial, is for those how have the need to switch on/off there NAS, in and out there Lan network, with iPhone/iPad.

First install the application.
http://itunes.apple.com/us/app/wakeup-t ... &ls=1&mt=8

For local WOL, the configuration is very simple. Just do a quick scan on network, and add it.

If you wish to switch on your NAS, out your local network, then you will have to do more steps.
First you need a host.
Than you have to configure your router to forward the port 7 our 9. I suggest port 7.
Your router must forward the port, to the MAC address of the NAS. IP address will not be possible.
If your router only forwards to a IP address, find out if the router can do the binding of the IP address, to MAC address.

Shutting of the NAS, our in standby mode, it can be done by the browser. But it can also be done by this application.
To do this, we have to open the port 22. Here the forward can be made to the IP address.
First we have to activate the sleep/shutdown option.
Here, we have to use the administrator access, by SSH port.
User: root
Pass: giveit2me
The next step is to add the code command, to execute the action we want.
For the sleep command add: usr/bin/php -f /usr/sbin/wol-sleep.php
For shutdown command add: /sbin/poweroff

Hope it's useful.