Project description
A small python module for wake on lan.
For more information on the wake on lan protocol please take a look at Wikipedia.
Usage
To wake up a computer using wake on lan it must first be enabled in the BIOS settings. Please note the computer you are trying to power on does not have an ip address, but it does have a mac address. The package needs to be sent as a broadcast package.
在BIOS中实现唤醒计算机必须开启WOL功能.打算唤醒的计算机没有IP地址,但有mac地址.
As a python module
- Import the module
>>> from wakeonlan import send_magic_packet
- Wake up a single computer by its mac address(唤醒单台局域网计算机)
>>> send_magic_packet('ff.ff.ff.ff.ff.ff')

本文介绍如何使用Python的WakeOnLan模块发送魔法包来远程唤醒局域网内的计算机。文中详细解释了如何通过MAC地址唤醒单台或多台计算机,并提供了设置外部主机和端口转发的具体方法。
最低0.47元/天 解锁文章
5725

被折叠的 条评论
为什么被折叠?



