The title can't be more specific. I'd like you to suggest the best way to send the poweroff instruction, to windows or Linux.
If your network card can use Wake-On-LAN and/or is supported, and is remotely accessible, then yes, it is quite possible to achieve it (wake-on-lan apps are in abundance on the play store), taking into account of security considerations which is outside of the scope of this site, double check and make sure no other service is on that public facing PC otherwise bad guys will get in and wreak havoc.
At the moment I'm using WOLdroid WOL Wake On Lan On remote.host execute:
Detect your remote.host's ehternet board usualy eth0 and save the HW Adress value XX:XX:XX:XX:XX:XX:XX
Enter that number when WOLdroid asks you for a mac adress. And your done.
Now you're able to powerup remotely
1. Prepare the Remote Host:
Remote host with Ubuntu 12.04
Create your private and public key files
To follow these steps you'll have to access your remote host, physically, or using another computer. I'll describe this as if you have physical access to the remote.host
Open a command window and install the ssh protocol:
Create public and private keys using ssh-key-gen
You should save the generated key in:
Press enter twice to leave the passphrase empty.
Now copy the id_rsa.pub to your ~/.ssh/authorized_keys file with this command:
Now you have to be able to execute the sudo shutdown -P 0 with no password.
Modify /etc/sudoers on remote.host with visudo
That way user "yourusername" can execute the shutdown command with no password asked.
By running visudo, it leads to edit /etc/sudoers.
Now we are able to access remotely, and shutdown without passwords asked.
2. Prepare your Android
Now you can Turn on and Shutdown a remote.host :)
You can simply enable Wake-on-LAN on your computer through BIOS setup, then use any of the several WOL apps to send the power-on command over the network. Some apps like SyncMe also include WOL functionality, so a separate WOL app may not be needed.
Shutdown on Windows
In general it will involve some server utility installed on the computer, and the client-side Android app communicating with it, for example oneID. These apps usually include other features, which may be overkill. You could use SSH and call the
For these reasons I end up writing my own small solution. HTTP Shutdown is a small web server which is going to shut down the computer when a specific HTTP GET request is received. That means you can turn off your computer from Android device by simply tapping a Tasker or web shortcut on home screen. Windows is going to shut down "properly", meaning your logoff scripts configured in Group Policy will get executed normally.
It requires Python and the PyWin32 library. Then you can run the server on computer startup like this for example: