Network utilities wake on lan. Wake On Lan – remotely turning on a computer via a local network
Wake on LAN technology will help you turn on your computer over the network using a “magic” package. In order for this packet to reach the network card normally, and for it to accept it and turn on the computer, you need to make some settings.
Setting up Wake on LAN on your computer.
The first step is to configure Windows. Let's take Windows 10 as an example. Press the key combination Win+X and select network connections. In network connections we find our network card (connection to local network), right-click on it and open properties, then click the configure button. Open the “Power Management” tab, here you need to check the “Allow this device to wake the computer from standby mode” checkbox. Then if you happy owner network Realtek cards, open the additional tab.
There are three parameters you need to check:
- Turning on via local network after disconnecting.
- Enable when pattern matches.
- Enable when the Magic Packet function is triggered.
1. You ran out of the house in the morning and forgot to turn on your computer to maintain your Torrent rating?
2. You once again ran out of the house, and when you got to work you remembered that you had left on your home PC necessary files? or vice versa.
3. Did your power turn off and your PC, Server, etc... turned off? but do you need them in working order?
4. Any other critical incident that happened to you on the road.
This article will talk about how, using Wake On LAN, which has been present in almost all BIOS since 2002, you can turn on your computer over a network or via the Internet.
From another PC or mobile device.
What you need to have
- ATX motherboard with WOL connector;
- Network card with WOL support;
- BIOS with WOL support, also WOL must be enabled;
Magic Packet from AMD, for Windows;
PocketLAN for Windows Mobile;
Wake On Lan for Android;
Maemowol for Nokia N800/900 Maemo;
![](https://i0.wp.com/habrastorage.org/getpro/geektimes/post_images/993/a99/d00/993a99d00f536573026f197cf0bed6bb.png)
Power On or (NetScan thanks to Tuxozaur) for iPhone/iPod Touch;
![](https://i1.wp.com/habrastorage.org/getpro/geektimes/comment_images/3bb/7f3/500/3bb7f3500ba1eb94f9acb7597594f31f.jpg)
Network Card Configuration
For WOL to work, it is necessary that after turning off the PC, the network card should be in " Standby", as indicated by the blinking lights on the network card. If everything is ok with this, further text you can skip it.If the lights do not light up, do the following:
Start - Control Panel - Network connections
, Select the active network card, go to its properties, then " Tune".
- If there is an NDIS Version item, - Select “NDIS X” (the default may be Auto), where X is the version of the Network Driver Interface corresponding to your operating system;
- Here you can also enable Wake on Magic Packet
Save the changes, restart the PC, then turn it off and check if the lights on the Network card are on.
Remote work from PC
In order to turn on and work remotely from a PC, you need to know the IP and MAC address. The command line will help you with this: ipconfig.exe /allYou can also try to find the MAC from another computer if you are on a local network by running the “ping” command and then displaying the ARP table (where the correspondence between IP and MAC will be displayed):
ping.exe IP_address
arp.exe -a
If you are using a router you need to configure redirection of broadcast messages on some port to your computer.
WakeOnLan Broadcast
Enable: yes
IP Address: Your internal broadcast address
Protocol: UDP
Private Port: 9
Public Port: 9
Schedule: Always
If you are not using a router, then it’s enough to know your external (dedicated IP) and open port 9 in the firewall. and use WOL from any device, for example an iPhone, after specifying the details of the PC to be turned on.
UPD: V lately I don’t have a Mac at hand, and I can’t check everything myself, so for those who need information on WOL for MAC OSX, read
Modern technologies are becoming more and more convenient, for example, turning on the computer we need, while being kilometers away from it without pressing a button. Wake-on-LAN has been around for a long time, so let's take a look at how it works and how to enable it.
What is Wake-on-LAN?
Wake-on-LAN is an industry standard protocol for turning on (waking up) computers remotely that have standby power. The definition of standby power is a mode in which the computer is turned off, but the indication on the motherboard indicates that it has power and at the same time it has the ability to start the power supply. The same protocol allows you to organize additional opportunity: Wake-on-Wireless-LAN - waking up from a wireless network.
Wake-on-LAN depends on two things: your motherboard and your network card. Yours motherboard must be connected to an ATX-compatible power supply, which is the case in most cases. Your network or wireless network card should also support this functionality. Since this feature is configured in the BIOS and in the network card, there is no need for additional special software to turn it on. Computer support for Wake-on-LAN is very common, even for older models. However, in newer computer models you can find in the BIOS additional options which will help you turn on your computer specific schedule or time. This, of course, is not technically Wake-on-LAN, but it further expands the functionality of the computer.
If you assembled the computer yourself, then know that a discrete network card also requires connecting a special 3-pin cable to the motherboard to support the Wake-on-LAN function.
Magic package.
Computers with the Wake-on-LAN function enabled, in order to turn on, wait for a special “magic packet” from the network, which will contain their own MAC addresses. This magical package can be sent with either operating system on a different platform, and from a website or router. Typical ports that are used for Wake-on-LAN are UDP 7 and 9. Since the computer “listens” to the network for the appearance of a magic packet, it consumes energy, although it is small, but it does consume it, which can negatively affect the battery level in the laptop . Therefore, if you are somewhere on the road and you do not need this function at that moment, then you need to make sure that it is disabled.
The magic packet is usually sent to the network itself and contains various sub-network information, the network broadcast address and the MAC address of the network adapter the desired computer. Moreover, it makes no difference what kind of adapter it is, wired or wireless. The picture above shows the result of the packet catching utility, which was used to catch the magic packet. This example shows how safe it is to use unsecured networks and the Internet. Many motherboard manufacturers, along with the Wake-on-LAN function, provide specialized software to simplify the setup and use of this function.
How to enable Wake-on-LAN.
BIOS
Most older computers, as well as many modern ones, contain a Wake-on-LAN setting in the BIOS. Depending on the type or model of the motherboard, it is possible to get into the BIOS by pressing the F2 or Del key during boot. The Wake-on-LAN settings should be in the following BIOS menus: Power Management or Advanced Options, or something like that.
Although there are computers that do not have the Wake-on-LAN setting in the BIOS, this does not always mean that they do not support it. It happens that you simply need to enable this function in the operating system itself.
Windows
Click the Start key and search for “Computer Management.” Find your device from the list of devices network adapter.
Right-click on it, select “Properties” from the menu, and then find the “Advanced” tab.
Scroll down the list and find the next item “Wake on Magic Packet” or something like that, and set the value to “Enabled”. Click on the OK key when finished.
OS X
Open the window System Settings» (System Settings) and select Energy Saver.
In the Options tab you should see the phrase “Wake on Ethernet” or something similar. This option enables the Wake-on-LAN feature.
Linux
Ubuntu has an excellent utility that will help you determine whether your motherboard supports Wake-on-LAN and, if so, enable it. Launch a terminal and install the "ethtool" utility using the following command:
sudo apt-get install ethtool
You can check whether Wake-on-LAN can be enabled using the command:
sudo ethtool eth0
Where eth0 is the name of your network interface, which you use by default.
Look at the section called "Supports Wake-on" (it's 3rd from the bottom). If you see the letter “g” opposite, this means that you can use the Magic Package for the Wake-on-LAN function. To enable it use the following command:
sudo ethtool -s eth0 wol g
After that, enter the previous command to check whether the Wake-on-LAN feature is now connected. Look at the "Wake on" section (it's 2nd from the bottom), you should now see a "g" instead of a "d".
Sending a Magic Package.
To submit an inducement request, you need to know some parameters.
Namely: this is directly the MAC address of the computer, its Internet address or host name, as well as the subnet mask where this computer is located. And it is necessary to know and enter the port number that the switched off remote computer is “listening to”.
You can download the program for sending a Magic Package using the following link:
Wake on LAN (WOL) is a technology that allows you to remotely turn on a computer via a local network or the Internet. (Wikipedia link:https://ru.wikipedia.org/wiki/Wake-on-LAN )
Program to enable Wake on LAN: http://www.syslab.ru/wakeon
To use the "Wake On Lan" technology ("Magic packet" technology), you must have:
1. The equipment must comply with the ACPI specification and BIOS settings support for the "Wake On Lan" mode must be enabled.
2. Have an ATX power supply.
3. Have a network card that supports Wake On Lan (WOL) technology.
4. Configure Wake on LAN via Router. (setting examples)
Settings
1. Enable WOL in BIOS
You can determine whether your computer's motherboard supports Wake On Lan. by going to the CMOS Setup settings in the power management settings section. Find the option there "Wake On Lan" and make sure it is enabled.
Example: "Power - APM Configuration" AMI BIOS v2.61:
To enable Wake On Lan mode, you must set the "Power On By PCI Devices" item to "Enabled"
2. Settings linux For Wake On Lan
- We putplastic bagethtool (apt-get install ethtool)
- Checking whether the card supports “Supports Wake-On”
ethtool eth0 | grep –i wake-on
In line Supports Wake-On The mechanisms supported by the network card are listed. In my example, I use the so-called sending method. Magic Packet, and if you need the same, then make sure that in Supports Wake On there is a letter "g". Letter "d" in line Wake-on indicates that Wake On Lan is disabled for this network interface. To enable it in Magic Packet recognition mode, you must:
ethtool - s eth 0 wol g
-
approx. ifconfig eth0 | grep –i hwaddr
Settings Windows ForWake On Lan
- Click the Start key and search for “Computer Management.” Find your network adapter from the list of devices. Right-click on it, select “Properties” from the menu, and then find the “Advanced” tab. Scroll down the list and find the next item “Wake on Magic Packet” or something like that, and set the value to “Enabled”. Click on the OK key when finished.
- You will also need to know the MAC address of the network card ipconfig – all
- The practice of using Wake On Lan has revealed another point - some computers, when enabling the network switching mode in the BIOS settings, turn on the power supply on their own, without even receiving a frame with the Magic Packet. The reason for this phenomenon is that for some network cards(noted by Intel, 3COM) to turn on the power supply over the local network, they use not only WOL, but also other events (Wake on ARP, Wake on Link Change, etc.), and by default, several inclusion criteria are used at once. You need to remove it from the adapter settings (usually using special utility) extra conditions, and everything will work correctly.
Settings MACOS For Wake On Lan
Open the System Settings window and select Energy Saver. In the Options tab you should see the phrase “Wake on Ethernet” or something similar. This option enables the Wake-on-LAN feature.
Settings FreeBSD ForWake On Lan
With each release of FreeBSD, more and more network card drivers gain support for Wake-on-LAN.
http://forums.freebsd.org/threads/wake-on-lan.28730/ (here we discuss how to insert a driver)
3.Routers:
a.ZYXEL:WakeonLAN via Internet Center seriesKeenetic(http://zyxel.ru/kb/2122)
b.Router configuration exampleTP-Link:
1. come in V chapter Forwarding->Virtual Servers
2. will add “virtual server” indicate its IP address and port that will be used to enable it. Typically ports 7 and 9 are used for Wake-On-LAN, but you can also specify any other port (from 1 to 65535). Set the protocol type to UDP or ALL.
3. Come in IP & MAC Binding->Binding Settings Turn on option Arp Binding .
4. Add new entry for the computer that you will turn on remotely by specifying its IP and MAC addresses. Don't forget to also enable the option for it Bind.
c.Router configuration examplemikrotik:
Note: Bmikrotik has a built-in utilitytoolwol which allows you to turn on your computer directly from the router. (http://wiki.mikrotik.com/wiki/%D0%A0%D1%83%D0%BA%D0%BE%D0%B2%D0%BE%D0%B4%D1%81%D1%82%D0 %B2%D0%B0:%D0%98%D0%BD%D1%81%D1%82%D1%80%D1%83%D0%BC%D0%B5%D0%BD%D1%82%D1% 8B_(Tools)/Wake-on-LAN )
An example of setting up Mikrotik to turn on the computer viasyslab:
1. Create a static entry in the ARP table for broadcast
> /ip arp add address=192.168.1.254 disabled=no interface=bridge-local mac-address=FF:FF:FF:FF:FF:FF
2. Create a static entry in the ARP table for the user’s computer
Recently I thought that it would be useful to be able to turn on my home computer remotely in order, for example, to retrieve an important document that had been successfully forgotten at home. Any person literate in hardware matters will say that there is no need to invent anything - there is a Wake-On-LAN function, and I will talk about its practical application in this article. Technically, in order for the computer to “wake up” it is necessary to perform necessary condition, but we’ll figure out which one further.
Requirements
In order to fully take advantage of the remote activation function, you must:
Motherboard supporting WoL (Wake-On-LAN);
ATX power supply;
Network card or modem that supports power management;
Computer turned off in Soft-OFF(it is in this mode that it goes through the start, after pressing the power button on the case/keyboard, turning it off using all possible software means).
Main part, reality and fiction
After analyzing all the material, I came to the conclusion that it would be convenient to divide the methods of turning on the computer into three categories, and then lead the story based on them. So, let’s conditionally divide all the methods into:
Wired;
Remote;
Wireless.
Why there will be a place for fantasy in this article, as well as why I arranged the sections this way, will become clear a little later.
Section 1. Boring. Wired connection methods
Firstly, wired methods of activation, of course, include activation using the keyboard and mouse. Both methods are boring, easy to incorporate BIOS'e, in the Power section, and little in demand, well, unless system unit It's awkward and it's a long way to reach the power button.
Second option, which I attributed to this section - switching on via the network, i.e. clean Wake-On-LAN without additional hassles.
Specifically in this case, it is necessary to have a network adapter (if the network card is discrete and inserted into PCI slot version below 2.2, you need to connect it with motherboard three-pin WoL wiring), and the presence of the network itself.
Note : For sleep and hibernation states, two more wakeup methods are sometimes available: WakeUP on PING/ARP– waking up when accessing your PC over the network, and WakeUP on Link Change– awakening when the network status changes (turned on/off).
Process WoL settings It starts with turning it on in the BIOS, all in the same place - in the Power tab.
Also on the Internet, it is advised to check the status of the checkbox on the Power Management tab for the network adapter. Control Panel > Equipment and sound > device Manager > Select your network adapter from the list > Properties > Power management> Check the box " Allow the device to wake the computer from standby mode».
I also recommend checking the status of the Wake-On-Lan parameter on the “ tab Additionally" (if it is available at all) for your network adapter.
Now everything is ready to turn on the computer via the network, only the last detail remains - find out MAC the address of your network adapter. There are many ways to find it out. The simplest (for Windows): Start > Execute > cmd > getmac
However, if you have several network devices in the system, the command may be more convenient ipconfig /all It displays complete information on all network adapters; you will need to find the required one and write off the “physical” MAC address.
Now all that is needed is to send a special packet over the network that will turn on the computer. IN Unix systems this can be done from the console, for operating systems Windows There are special applications. Here are some of them:
- Magic Packet
- Wake On Lan
- WOL
Finding such applications is not difficult, so I will not pay much attention to this. The only thing I can add is the program WOL supports work from command line, i.e. you can create a shortcut like: , which will send packets with the specified MAC addresses.
Section 2. Interesting and useful. Remote methods inclusion
The simplest and most understandable way to remotely wake up a PC is to turn it on from a call to the modem. To do this you will need: a modem that supports the function Wake-On-Ring and activation of the item of the same name in the BIOS of your motherboard.
Moreover, it is important to understand that if the modem is external, then you need to activate the “ Pwr Up On External Modem Act", and if internal - then the item " Wake On Lan or PCI Modem».
IN in this case the computer will turn on every time the phone rings - convenient if you have an open line that no one will call. The only downside is that the modem can be triggered by interference or dialing a number on a parallel phone, which means that the PC may turn on falsely.
But this is not the most interesting way– turning on the computer from any place where there is Internet access can be much more useful.
What you will need:
PC with configured Wake-On-LAN;
Router or modem ( external modem, operating in Router mode), maintaining a constant Internet connection;
Static “white” IP address or DynDNS account.
To explain why I will describe my configuration. Internet comes by ADSL on WiFi router from where it is distributed to everything necessary devices. Since the IP address is dynamically assigned to me, I had to register an account on DynDNS.com to be able to find your router on an external network at any time (find out the current IP address).
Now about the settings, in order for the packet to pass through the router - you need to forward ports 7 and 9 to the broadcast address, since in the off state the PC network adapter is not assigned an IP address. For example, your PC and router (and other devices, if any) are on a subnet 192.168.0.*** then you need to forward ports 7 and 9 (I forwarded only 9) to the address 192.168.0.255 . But even here difficulties arise - as a rule, you cannot specify this address in the modem settings. There are two options:
1. Trick the input data verification system in the modem's Web configurator. To do this, you need to disable JavaScript in your browser and save required address. In Opera: when trying to save an address with 255 at the end, Opera showed an error window, at the bottom there is a checkbox “Disable script execution for this page” - check the box and save the desired value. It worked on my LinkSys WAG-200. This method It’s also good because it’s enough to forward the port once so that you can turn on any computer on your home subnet from the WAN.
2. Create a static ARP entry in the ARP table of the router or modem. This is done so that the modem/router can determine your computer by its MAC address. Those. The modem must have a hard connection between the MAC address and the IP address of the computer, and then the packet will reach the destination (in dynamic ARP mode, the record is not stored if the host is turned off). Then you need to forward the port to the computer’s IP address.
After the problem of delivering the magic packet is solved, all that remains is to remember/write down the MAC address of the computer that we need to turn on and...
In principle, you can use the utilities described in section 1, but it may also happen that you don’t have them at hand - no problem, you can send an enable request from the addresswakeonlan.ru! Also on this site you can set up sending a WoL package on a schedule, which may be useful in some cases.
So here it is in the 21st century, in order to turn on the computer you just need to go to the page and make a couple of clicks. There are also programs for cell phones and communicators that allow you to send a WoL package via GPRS.
As for false inclusions, in order for the computer to turn on, you need to know exactly the MAC address and destination address (where to send the packet). In general, during the entire test period I did not have any cases of the computer turning on falsely. In my opinion, it is this ability to turn on the computer, being anywhere with Internet access, that is the most useful in our time.
Section 3. Fiction. Wireless activation methods
The easiest way wireless activation PC - switching on using a kit remote control computer. Simply put, this is a remote control that allows you to control many functions while being at some distance from the computer. For example, I had such a set that came with my motherboard.
IR receiver it is inserted into USB and receives signals from a small remote control, which has the coveted power button. Everything works fine for me from the remote control. In order for everything to work according to this scheme, you need to activate the ability to turn on USB devices in the BIOS.
It is also necessary that USB devices When the PC was turned off, power was supplied. The latter, as a rule, is switched by jumpers on the motherboard itself. You can read more about this in the instructions for the motherboard.
There are other kits that are sold separately, they also have the ability to turn on the computer from the remote control. Also, most TV tuners can turn on a computer remotely. From a practical point of view, this method is of little use, because the distance to the computer is strictly limited, and in the case of IR kits, direct visibility between the remote control and the receiver is necessary.
Also, to wireless methods enablement refers to Wake-On-LAN via Wi-Fi. Unfortunately, not everything is so wonderful here - most network Wi-Fi adapt e moat does not support WoL. There are descriptions of wireless adapters that support WoL on the Internet; they usually have a higher price compared to other adapters. I was never able to test WoL over Wi-Fi at home, since the network adapters built into both the PC motherboard and the laptop do not support this function. Apparently this feature will become more widespread among Wi-Fi adapters in the future.
The next thing that came to my mind was turning on the computer through Bluetooth adapter. Technically, this is the same network adapter, which also has a MAC address, which means it is quite possible to implement the WoL function. However I didn't find any information about the implementation this method in practice. In general, the feasibility of this method raises serious doubts - Bluetooth adapters also have a very limited range. Moreover, I would include kits in this same category wireless keyboards and mice (some also work via Bluetooth).
Well, the most incredible idea that came to my mind was turning on via USB 3G modem, when sending an SMS or a call to the SIM card in this modem. Again, technically, to implement such a function, it is necessary that power is supplied to the USB bus when the PC is turned off, and the modem at that time is in working condition and supports this function.
In general, it turns out that you can turn on the computer from almost any device, the main thing is to find a way to achieve the goal and so that this function is supported by the device itself. However, this is completely fantastic...
Bottom line
Just recently I asked myself this question: how to access data on my home computer without having to keep it on all the time, and I found a solution to this problem. I was surprised that everything you need is at hand, and this function is traditionally considered useless in most cases. When I was dealing with this issue, I had to read a lot of information, and I discovered that on Western forums the issue is discussed much more often than on ours.
Also, do not forget that all of these methods can not only turn on the computer, but also wake it from sleep mode and hibernation mode. As a result, I discovered a very convenient feature, and I hope that this article will help someone in solving everyday problems and issues related to the Wake-On-LAN function.