Wake-on-LAN works as long as the mac (physical) address of the machine is configured.
Shutdown-on-LAN works only if the IP address is stored and the package below is started. Note that your mobile phone needs to be connected, through WiFi, to the same network of your machine.
Download either package on your machine!
"Shutdown" package @ https://www.dropbox.com/s/zm368l3g8l7ohqo/Shutdown.jar
"Standby" package @ https://www.dropbox.com/s/q07fva9tce6l70b/Standby.jar
Put the package in your "startup" folder if you want it to startup automatically whenever you boot your machine.
*Only in Windows & Unix machines