2049 shaares
148 private links
148 private links
1 result
tagged
Wake-on-Lan
Wake-on-Lan en Python.
!/usr/bin/env python
import socket
s=socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1) s.sendto('\xff'6+'\xQQ\xQQ\xQQ\xQQ\xQQ\xQQ'16, ("255.255.255.255",9))