I want to wake up my personal computer using "WAKE ON LAN" over the internet i.e by sending a Magic Packet from a remote device.
Following is the configuration
- Enabled WOL in BIOS and the OS as well using guides at How to Remotely Turn On Your PC Over the Internet
- Created a hostname "example.ddns.net" that maps my changing external IP to a hostname. DNS service is working fine. A Dnslookup of my hostname is successful
- Port forwarded ports 7 and 9 (Defaults for Magic packet over UDP) to my router's broadcast address
- My Pc is behind a DLINK 605L router
- System is either in SLEEP or HIBERNATE state.
When i send a magic packet locally i.e from another device connected on the same network the Pc is connected to Everything goes well.
as java WakeOnLan 192.168.0.255 00:0E:62:09:xx:xx
However when i try sending a magic packet from another network specifying the MAC address and example.ddns.net WOL doesnt work
as java WakeOnLan example.ddns.net 00:0E:62:09:xx:xx
used the code from here http://www.jibble.org/wake-on-lan/
Any help is appreciated.