Skip to content

Easy Node JS control for testing communication with Wake-On-LAN.

Notifications You must be signed in to change notification settings

highnet/etherwake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 ethermod

🗒️ Description

🔧 Pre-requisites

🌐 Usage

  1. Clone the ethermod repository.

  2. Run the ethermod module by entering the command:

node index.js [MAC ADDRESS1] [MAC ADDRESS2] [MAC ADDRESS3] …

where [MAC ADDRESS] is the MAC address of the target machine. You may add arbitrarily as many MAC addresses as required.

  • For example, to wake up a target machine with mac address 00:01:2e:a8:65:75 , enter the command:
node index.js 00:01:2e:a8:65:75
  • For example, to wake up two target machines, one with MAC address 00:01:2e:a8:65:75 and another with MAC address b8:ae:ed:7e:ec:06 , enter the command:
node index.js 00:01:2e:a8:65:75 b8:ae:ed:7e:ec:06
  • Your target machines should now boot up, and you should see the following output:
wetouch@raspberrypi:~/nodejs-wake-on-lan-tests/ethermod $ node index.js 00:01:2e:a8:65:75 b8:ae:ed:7e:ec:06
   ___ ______  __ __    ___  ____   ___ ___   ___   ___
  /  _]      ||  |  |  /  _]|    \ |   |   | /   \ |   \
 /  [_|      ||  |  | /  [_ |  D  )| _   _ ||     ||    \
|    _]_|  |_||  _  ||    _]|    / |  \_/  ||  O  ||  D  |
|   [_  |  |  |  |  ||   [_ |    \ |   |   ||     ||     |
|     | |  |  |  |  ||     ||  .  \|   |   ||     ||     |
|_____| |__|  |__|__||_____||__|\_||___|___| \___/ |_____|

Sending magic packet to MAC Address: 00:01:2e:a8:65:75 ...
Sending magic packet to MAC Address: b8:ae:ed:7e:ec:06 ...

🤓 Installing Node JS on Linux

  • To install Node JS on your Raspberry PI, type the following sequence of commands in the terminal:
wget http://nodejs.org/dist/v6.2.1/node-v6.2.1-linux-armv6l.tar.gz
tar -xzf node-v6.2.1-linux-armv6l.tar.gz
cd node-v6.2.1-linux-armv6l/
sudo cp -R * /usr/local/
node -v
npm -v

😎 Installing etherwake on Linux

  • To install Etherwake, a tool for sending Wake-On-LAN magic packets, type sudo apt install etherwake in the terminal.
node index.js 00:01:2e:a8:65:75

🤔 Common Issues

  • I want to turn on a target machine with ethermod. I followed the Ultimate Wake-On-LAN Tutorial, but it is still not responding to Wake-On-LAN messages or it is only responding to Wake-On-LAN messages when the machine is in sleep mode and not when it is on powered off state.

    • Here are the steps to update the Ethernet interface network drivers on a Windows machine Using Device Manager:
    1. Press the Windows key and type “Device Manager” in the search bar. Then, click on “Open”.

    2. In Device Manager, locate and expand the “Network adapters” category.

    3. Right-click on your Ethernet interface network adapter and select “Update driver”.

    4. In the “Update Drivers” window, select “Search automatically for updated driver software”.

    5. Wait for Windows to search for and install any available updates for your Ethernet interface network adapter.

    • That’s it! Your Ethernet interface network drivers should now be up-to-date.

About

Easy Node JS control for testing communication with Wake-On-LAN.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published