The actual power-on is done with a Wake-on-LAN UDP packet: six FF bytes
followed by the machine's MAC address repeated sixteen times. In NodalDesk, the WoL
helper computes the MAC and the broadcast address of the primary interface when it can,
and sends that packet over UDP broadcast to the standard port 9.
The nodaldesk-daemon has a separate responsibility: to stay as relay
presence and listen for wake requests so it can send the magic packet on the local
network. The technical docs place it on UDP 9877 for those orders, and the
final send is still the WoL packet to the LAN.