![]() I found this python script on google: Don't forget to change the MAC address to the computer you want to wake. The results are available in the system log. The pi automatically turns on and scans itself for corruption after an unexpected power-cut. I happen to have a Pi, how would I set this up? Also, how would I turn the pi back on if, say, the power goes out? I wouldn't broadcast my computer's mac address out on the internet, way too risky in my opinion. Then, when I open a particular webpage on the device, or send encrypted credentials etc, it would run a python script to send the "magic packet" (The destination computer's mac address) out to every device on the internal network, causing the PC to power on. Personally if I was going about something like this, I'd have a computer/IoT device always on indoors, such as a Raspberry Pi. If your PC has the IP address 192.168.0.123, you’d enter 192.168.0.255 as the broadcast address. For example, if your PC has the IP address 192.168.1.123, you’d enter 192.168.1.255 as the broadcast address. To do this, you’ll need to forward the port to the “broadcast address,” which will broadcast the packet to all computers on a network. This is known as a “subnet directed broadcast.” The Wake-on-LAN packet must be forwarded to every device running behind your router, and a device will only wake up if the information in the WoL packet matches it. ![]() ![]() You’ll need to forward a UDP port to all IP addresses behind your router - you can’t just forward to a specific IP address. Many utilities use ports 7 or 9, but you can use any port you like for this. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |