Android Wake On Lan in Java
问题 i'm trying to make a Wake On Lan application in Java (for Android), so I searched, and found this code: import java.io.*; import java.net.*; public class WakeOnLan { public static final int PORT = 9; public static void main(String[] args) { if (args.length != 2) { System.out.println("Usage: java WakeOnLan <broadcast-ip> <mac-address>"); System.out.println("Example: java WakeOnLan 192.168.0.255 00:0D:61:08:22:4A"); System.out.println("Example: java WakeOnLan 192.168.0.255 00-0D-61-08-22-4A");