Skip to content

gek64/WakeOnLAN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wake-on-LAN

  • wake on lan
  • with password support
  • customizable broadcast ip address and port

Usage

Usage:
  wakeonlan {Command} [Option] MAC_ADDRESS

Command:
  -h                : show help
  -v                : show version                                           
                                                                             
Option:                                                                      
  -pw <Password>    : set magic packet password                              
  -a  <IP>          : set broadcast IP                                       
  -p  <Port>        : set udp port                                           
                                                                             
Example:                                                                     
  1) wakeonlan 1A-2B-3C-4D-5E-6F                                             
  2) wakeonlan -pw AA-BB-CC-DD-EE-FF -a 192.168.1.255 -p 9 1A-2B-3C-4D-5E-6F
  3) wakeonlan -h                                                            
  4) wakeonlan -v 

Compile

git clone https://github.com/gek64/WakeOnLAN.git
cd WakeOnLAN
export CGO_ENABLED=0
go build -v -trimpath -ldflags "-s -w"

For openwrt on mipsle router

git clone https://github.com/gek64/WakeOnLAN.git
cd WakeOnLAN
export GOOS=linux
export GOARCH=mipsle
export GOMIPS=softfloat
export CGO_ENABLED=0
go build -v -trimpath -ldflags "-s -w"

License

GPL-3.0 License

See LICENSE for details