starting up a PC over the internet that has been in shutdown state
how to start a PC that has been shutdown from a mobile phone from anywhere on the internet?
1. On the PC
Go to Device Manager>Network Adapters
Right Click the Network adapter that is connected to LAN and select Properties
Go to Power Management tab and check the boxes, Allow this device to wake the computer and Only Allow a magic packet to wake the computer.
Go to Advanced tab and ensure Wake on Magic Packet/Wake on Pattern Match are enabled.
Note thew MAC address of the PC by going to Start>Settings>Network and Internet>Ethernet>Properties>Physical address (MAC)
2. On the PI
Connect a Raspberry PI to the same network that has the PC's that need to be restarted.
Enable remote desktop on the pi
Install a package in terminal using command sudo apt-get install etherwake
Test waking up the PC by using the command : sudo etherwake -i eth0 MAC:ADDRESS
Create a script [wol.sh] and make it executable.
Install xrdp using : sudo apt-get install xrdp
Install zerotier client on the pi
curl -s 'https://raw.githubusercontent.com/zerotier/ZeroTierOne/master/doc/contact%40zerotier.com.gpg' | gpg --import && \
if z=$(curl -s 'https://install.zerotier.com/' | gpg); then echo "$z" | sudo bash; fi
Join the pi to the zerotier network.
3. On the Router, forward the port 3389 to the PI.
4. On the mobile phone., install RD Client app and remote login into the pi by giving the zerotierip:3389.
5. Execute the shell script created in step 2.
Comments