Reputation: 143
i heard that wol(wake on lan) will only work for desktop systems. is there any implementation in java for wol, so that it works for laptops?(wol is the mechanism of turning on the remote system by sending 'magic packet' to the system).and is there any implementation in java for android phones? i found a simple wol apps in android market, i tried to extract the functionality of these apps, by practically testing them. but no app is working for both desktop and laptop systems.i configured my windows pc, so that it allows magic packet to wake on the pc.but i dont know where its going wrong.
Upvotes: 1
Views: 2041
Reputation: 69
You have to be more specific. If your laptop is connected over WiFi then there are big chances that it won't work. If your laptop is connected over an Ethernet cable then most probably it will work. You just have to enable WOL from the BIOS, or on some devices it can be also done from the network interface properties. I'm using WolOn Android app to wake a laptop connected over cable and it works flawlessly both on Windows and Ubuntu.
Upvotes: 0
Reputation: 7859
WOL is a BIOS setting that you will need to turn on on the individual machines (I think it is turned off by default). I don't think there is any reason that laptops cannot accept WOL packets.
Here is a simple implmentation of WOL for Java: http://www.jibble.org/wake-on-lan/ It should be easy to port it over to work on Android.
However, you have to note that WOL will only work within a LAN and that the target machines have to be in a specific power setting in order to allow them to turn on.
Upvotes: 2