Skip to content

nakky/WakeOnLanSharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WakeOnLanSharp

Simple WakeOnLan Utility for C#.

Installation

We recommend to insntall Stable WakeOnLanSharp using Nuget.

Install-Package WakeOnLanSharp

Sample Usage

using WakeOnLanSharp;
...
WakeOnLan wol = new WakeOnLan(9); //Port 9 is used here
...
string macAddress = "00-00-00-00-00-00";
//string macAddress = "00:00:00:00:00:00"; //Separator can be "-" or ":".

byte[] mac = WakeOnLan.ParseMacAddress(macAddress);
wol.SendMagicPacket(mac, IPAddress.Broadcast.ToString());

About

Simple WakeOnLan Utility for C#.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages