How to use wake on lan

Hello everybody

I have my project about wake on lan

i’m write code :“”,“84:d0:9b:b0:5f:b8”)

then I’m run my program but it can not wake up computer ?

Am I doing something wrong or not.

thank you

but Some time when I’m shutdown my computer then I’m run program soon
This my program can open my computer

thank you

While the computer is running I need run my project then Press one time before shutdown. when my computer is shutdown then Press botton --> My computer wake on

but why if I’m not Press one time before shutdown --> my computer not wake up

thank you…