Skip to content

Wake up machines on the LAN by sending WakeOnLAN magic packets.

License

Notifications You must be signed in to change notification settings

da-rod/wakeonlan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

wakeonlan

Very small library to:

  1. create a Wake-on-LAN magic packet
  2. send it to the broacast address 255.255.255.255:9

Usage

import "github.com/da-rod/wakeonlan"

randomMAC := "a7:cc:00:0c:eb:40"
if mp, err := wakeonlan.NewMagicPacket(randomMAC); err == nil {
    mp.Send()
}

See example that builds the CLI binary.

About

Wake up machines on the LAN by sending WakeOnLAN magic packets.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages