How to Power On and Shutdown a Remote host with Android? 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.
Power On
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 shutdown.exe utility, but it may be overkill too. Besides, these solutions may not shut down Windows &quot;properly&quot;. For example, neither oneID nor shutdown.exe were able to trigger my &quot;backup on logoff&quot; routine.
WebShutdown
For these reasons I end up writing my own small solution. WebShutdown 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 &quot;properly&quot;, meaning your logoff scripts configured in Group Policy will get executed normally.
You can run the server on computer startup like this for example: webshutdown.exe 80 valid_password.txt. Then, on Android device you access the web address http://COMPUTER/shutdown?auth=&lt;password&gt; to start system shutdown.