How to implement Wake-On-Lan using WINAPI with C

111 Views Asked by At

I have the MAC address of my 2sd workstation which is under the same LAN as my primary computer.

I want to send a magic packet 0xFFFFFFFFFFFF to his MAC address. I know i must use UDP.

What i don't know is : What is the broadcast address and how can i get it from code ?

I want to do it in plain C using WinAPI.

0

There are 0 best solutions below