I've used the ssh method with a router capable of wol, that works, but the direct method I havent tried. one way of checking if your network is setup properly is to use something other than the script for example a wol web page like http://www.dslreports.com/wakeup if you don't like giving them your real mac address spoof it first. an alternative is to use a windows program to send it http://www.depicus.com/wake-on-lan/wake-on-lan-gui.aspx see if it works. if any one of these methods work over the internet but not the script then we know it's not a network problem or the router destroying the magic packet.