This is a application use Wake-on-LAN. You can turn on your Mac or PC by remote using your iPhone or iPad.
Wake-on-LAN (WoL) is an Ethernet or token ring computer networking standard that allows a computer to be turned on or awakened by a network message.