Skip to content
forked from rmrodrigues/wol4j

A simple Java implementation of WOL(Wake-On-Lan).

License

Notifications You must be signed in to change notification settings

wangwen135/wol4j

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

java-wol

A simple Java implementation of WOL(Wake-On-Lan).

##Usage

  WOLNode node = new WOLNode("002245bf6c99");
		try {
			node.wakeUP();
		} catch (UnableToWakeUpWOLNodeException e) {
			//TODO: write some code
		}

##MAC Address allowed formats

  • 11:22:33:AA:BB:CC
  • 11-22-33-AA-BB-CC
  • 1122.33AA.BBCC
  • 112233AABBCC

Note: The letters can be both upper and lower case.


使用说明

直接java -jar 运行

参数说明:Mac地址 [广播地址] [端口]

如:

# java -jar wol4j-1.0.0.jar 22-00-DD-11-44-7A 192.168.1.255

默认端口是:9

About

A simple Java implementation of WOL(Wake-On-Lan).

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Java 100.0%