Listen for wakeonlan request
With nc
you can listen on an udp port. The magic packet usually is sent to port 9 via broadcast. So, the command would be:
nc -ul 9
Depending on the nc implementation, you may also need to provide the -p
flag:
nc -ul -p 9
To test it use the wakeonlan
command...
wakeonlan <your-mac>
...and see in the nc terminal the output.