TheElixZammuto / moonlight-xbox

Moonlight port for Xbox One/Series Family of Console
GNU General Public License v3.0
352 stars 25 forks source link

Host Wake-On-LAN #126

Open sixk32 opened 5 months ago

sixk32 commented 5 months ago

Add an option to wake host by sending a magic packet to its last known IP and the usual broadcast IPs.

I had to retrieve the MacAddress from the server info, so this will only work after the host / client have been connected since this update. Warnings and errors are just sent to logging, wasn't sure if we should pop an error message or if we should hide the button if the host is connected / reachable.

Magic packet is constructed with 6 0xFF chars followed by 16 mac addresses (in base 16 decimal). This can't be tested using a local machine as the server info doesn't retrieve the mac address, but tested using my laptop fine.

Feel free to edit and thanks for creating this project.

sonarcloud[bot] commented 4 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

FelixLisczyk commented 2 months ago

Are there any updates on this PR? I would love to use Wake-on-LAN from Moonlight on my Xbox. 😊