https://www.bilibili.com/read/cv16394822/

for mac,这个文章看一下是否能解决。

https://forums.macrumors.com/threads/wake-on-lan-mac-when-shut-down.2291657/