Turning on your computer using a magic package. Wake-On-Lan - program description

Wake on LAN technology must be supported by the BIOS and network card. Also, we will need special application, the functions of which allow you to send a WOL packet to a remote PC.

Thanks to modern advances, you can turn on a remote PC not only from another computer, but also from your phone. It is also necessary to remember that turning on the computer remote mode assumes the activity of the network card - it must receive power in standby mode.

Preparatory actions

First of all, you need to configure the BIOS and network adapter to wake up. It doesn’t matter what kind of network it is - built-in or external. Opening main program I/O, let's find the section responsible for power management - Power Management, for example.

In this section you need to find the wake-up parameters.

These options may go by different names, including Wake on LAN, PowerOn By PCI Card, WOL from Soft-Off and so on. It is necessary that this option was turned on.

It is quite possible that you will need to enable the option in the picture below.

To be more confident, it's best to familiarize yourself with all the wake-up options in your BIOS. After all, the computer can wake up from the TV tuner if the option to turn on via PCI-Express is enabled, and after pressing any key on the keyboard if the options related to the PS/2 port are enabled. In our case, we need a parameter associated with the PCI bus on which the built-in network controller is located.

After setting up the BIOS, be sure to check whether the technology being discussed is supported by your Ethernet controller. We will need to enable the reception of the “magic” WOL packet so that the Ethernet controller is configured to wait for it. A WOL packet is a special Ethernet frame consisting of a sequence of bytes containing the MAC address of the network card. Having received such a frame, the Ethernet card generates a signal to wake up the PC.

So, let's open the network control center.

Let's open the properties of the network adapter.

Let's move on to its settings.

Let's turn it on WOL Package Magic and, if necessary, enable Energy Efficiant Ethernet, Termination Wakeup.

Let's go to the power management tab, where this configuration should be.

WakeMeOnLan

Let's use a small program called Wakmeonlan for our purposes. This application does not require installation. After it starts, you need to scan the local network so that Wakemeonlan finds everything network devices.

It must work on a PC from which a WOL frame will be generated to turn on the remote PC. This is how Wakemeonlan scans:

If during scanning the application does not detect a disabled this moment computer, then it is possible to add it yourself.

Let's add another device manually.

You just need to enter the IP address of this device and its MAC into the form.

Let's determine the addresses we need, for which we'll launch the command line.

Let's run ipconfig with the /all switch.

The second way is to look at the “Adapter Status”.

Open the Details window.

Let's find the addresses that interest us.

Having added the desired device, we will update the list.

As you can see, we already have three devices.

After adding, you can easily turn it on remotely by clicking the “Wake up Selected Computer” button.

Let's use TeamViewer

Completed pre-setting will allow you to run Wake function on LAN of an application such as TeamViewer. To remotely wake up your PC, you must ensure the following:

Cable Internet connection.

The computer is set to one of the modes: hibernation, sleep, or soft shutdown (Start and Shutdown).

Installed TeamViewer.

It's very important to turn off quick start in operating systems such as Windows 8 and 10. Your instances of TeamViewer must be associated with a program account. In this case, all devices must belong to the same LAN.

In the application options tab, you need to activate the Wake-on-LAN function and configure the configuration by clicking the button of the same name. By selecting the option “Other applications in the same local network", add the TeamViewer ID of those devices from which you are allowed to wake up this computer. To create inclusion conditions using a public IP address, you will have to connect to dynamic DNS, which will also have to be configured on the network router. Let's consider all the steps in order.

First of all, let's connect all computers to an existing account.

Warning window about the need to connect to your account.

Linking using the “Link” button.

The established connection is displayed at the bottom.

We will need to configure the Wake on Lan function.

Check the box for other TeamViewer applications.

Add the TeamViewer ID whose computer will send the WOL packet.

You can wake up a remote PC from your TeamViewer account, where all devices linked to it are displayed. You just need to press a button in the form of a power button, which will send a WOL frame to the Ethernet card of the selected electronic device.

Brief summary

To turn on your PC remotely from another device, you need to configure the BIOS and Ethernet card. In the BIOS you will need to configure a policy for waking up the PC by a network signal, which is in an active state, provided by standby power. Also, you need to configure the Ethernet controller to receive WOL packets. Will need more special program to generate a WOL packet. Such a program could be, for example, Wakemeonlan or TeamViewer.

1. You ran out of the house in the morning and forgot to turn on your computer in order to maintain your Torrent rating?
2. You once again ran out of the house, and when you came 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;
And,
Magic Packet from AMD, for Windows;
PocketLAN for Windows Mobile;
Wake On Lan for Android;
Maemowol for Nokia N800/900 Maemo;


Power On or (NetScan thanks to Tuxozaur) for iPhone/iPod Touch;

Network Card Configuration

For WOL to work, it is necessary that after turning off the PC, the network card is in the " Standby", as evidenced by the blinking lights on the network card. If everything is in order with this, you can skip further text.

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 enable and work remotely from a PC, you need to know the IP and MAC address. It will help you with this command line: ipconfig.exe /all
You 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 redirection needs to be configured broadcast messages on any 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

Few Windows users Have you heard about Wake-On-Lan technology (or WOL for short), much less have you ever used it? Most readers of our site will already yawn at this phrase and rush to switch their attention to something else, more understandable and interesting to read. But don’t rush to do this, because... WOL technology, in fact, is quite understandable, simple and in demand at the present time.

Let's consider step by step what Wake-On-Lan technology is, what requirements this technology has for computer components, what are the features of its settings in Windows 10, and also in what cases it may be needed, when and how it can be used in everyday life.

What is Wake-ON-LAN?

WOL, invented and introduced into the functionality of network devices quite a long time ago, but not very initially in demand (only in narrow circles - network business solutions) Wake-On-LAN allows you to turn on a PC remotely, by sending special team via a local network, or even via the Internet. It immediately becomes clear that this convenient feature– “wake up” your “machine” remotely to gain access to your files, operating system and software installed in the OS.

Thus, using the Wake-On-Lan + combination (TeamViewer, Radmin, and others) - anyone can control their PC, work on it, configure its components from anywhere in the world, accessing the PC via the Internet. In this case, no assistance or the presence of anyone else directly near the computer is required.

Also, briefly, it is worth noting that based on WOL it is possible to implement Wake-on-Wireless LAN - this is a technology wireless activation computer based WiFi work routers and other similar devices. Of course, similar devices wireless transmission data must include support in their software and hardware functionality remote activation.

WOL technology requirements

To implement such a PC operation scheme, the following technical conditions must be met:

  1. The PC motherboard (which, as a rule, has an integrated network card) must have a built-in Wake-On-Lan support function. Let us reassure you right away - in modern motherboards this function is always present, i.e. is there almost by default.
  2. The PC power supply must support the well-known ATX standard. This technology is more than 1.5 decades old, it is popular and in use, and the ATX standard is supported by almost all power supplies available on the computer components market.
  3. The computer itself must be constantly connected to a power source - be it an electrical outlet, a battery (if it is a laptop or other type of portable PC), or a source uninterruptible power supply(UPS).

Due to the fact that the operation of WOL technology is implemented at the computer hardware level, then this technology Works on most types of operating systems, be it Windows, Mac or Linux.

The convenience of Wake-On-Lan technology lies in the fact that when the computer is not in use by you (and you are remote from the computer), the PC can be in any of the operating states that save energy. Be it hibernation mode, sleep mode, whatever - the PC can even be turned off (but, of course, not physically disconnected from the power supply)! Well, in case you need any files on this PC, or you need to run a specific program on it - you can easily “wake up” your computer, turn it on remotely and start working with it. And this, you see, is very convenient, very effective.

So if technical specifications are met, standards and WOL format are supported - let's move on to the Wake-On-Lan settings section to implement this functionality.

Setting up and enabling Wake-On-Lan in Windows 10

Being directly in Windows 10, press the combination of keyboard buttons “WIN” + “I”, the “Settings” window will open, in it select the “Network and Internet” section:

In the window that appears, click on the “Ehernet” (network adapter) section on the right side of the window, and then on the left side of the window click on the “Configure adapter settings” item:

The “Network Connections” window will open. Find the shortcut called “Ethernet”, right-click on it, and select “Properties” from the pop-up menu:

The PC network card settings will open. At the top right, immediately below the name of the network card, click on the “Configure” button.

In the window that opens, select the “Advanced” tab. Next, in the network card properties settings window that appears, scroll through the list of parameters to the “Wake on Magic Packet” item, select it with a mouse click, and on the right side of the window, switch the parameter from “Enabled” to “enabled” if the state is “Disabled” - "turned off":

Next, without clicking the “Ok” button and without closing the current window, select the “Power Management” tab. In this window, check the checkboxes (enable them):

After completing all these steps, click the “Ok” button, the settings window will close, the new parameters will take effect from now on. Close all other windows that are open to make these WOL settings.

“Magic” Wake-On-Lan package

As you noticed, in the previous section the term “magic” package was mentioned; it is also called a “magic” package. What are we talking about in in this case, what kind of magic are we talking about if the essence of the topic is purely technical - setting up a PC?

The fact is that the “magic” packet was the name given to the same command transmitted over the network that forces the computer to “wake up” and turn on according to the “order” of the owner.

What does the “magic” package look like? Everything is quite simple - it’s a simple combination of numbers, a kind of block of numbers that is sent over the network from the user’s device to his remote computer in sleep mode. This block consists of the following parts:

  • hexadecimal code “0xFF” repeated 6 times in a row;
  • MAC address of the computer's network card, repeated 16 times.

Due to the fact that the MAC address of any network device in the world is unique and does not repeat itself, a “magic” packet containing this MAC address can be intended for a very specific, one network device. This allows you to access your device remotely, from anywhere on the planet, and with access to the Internet. All other PCs, routers and other network devices, accordingly, will not react in any way to the appearance of such a data packet, because they already have their own, also absolutely unique, MAC addresses.

The network adapter, thanks to the enabled Wake-On-Lan technology, constantly scans the network for the appearance of just this command in order to initiate the process of turning on the personal computer at the same instant - power will be supplied, the PC will turn on, startup will be initiated operating system Windows.

To do all this, you need to put the network card into PC power management mode, that is, allowing it to turn on the computer when a signal appears - a “magic” packet, which is what we did in the previous section.

Setting up the computer's remote wake-up mode in the BIOS

For successful computer operation in Wake-On-Lan mode, in addition to compliance technical requirements supported standards, and the corresponding settings of the network card - you must also enable the appropriate operating mode in the computer BIOS.

Restart (turn on) the computer, and from the first seconds of booting, continuously press the “F2” or “DEL” key, depending on BIOS version. Next we need to find the appropriate BIOS setting that allows you to enable Wake-On-Lan mode. Typically, this option is located in the BIOS section “Configuration” or “Power management”. But due to the fact that the market personal computers There are enough BIOS versions a large number of, and they differ greatly from each other in terms of interface design, it is difficult to clearly write where the WOL enabled option is located.

Even the name of the remote turn-on technology itself can be called differently, depending on the model and BIOS version, PC platform (MAC, Windows, Linux). In addition to the original name “Wake-On-Lan”, see examples of possible alternative options names from the list:

After the option is found, select its operating mode option as “Enabled” or “Enabled” if the BIOS is on English language. That's it, the BIOS settings are complete. To save changes, press the “F10” key, or in the item BIOS menu Find the item “Save and exit”, confirm in the window that opens that you have chosen the correct exit option (with saving) by clicking OK. The computer will reboot with a new one given parameter BIOS.

Security and Wake-ON-LAN

The essence of the WOL technology is that each user of the local (global) network in which the computer itself is located with WOL enabled can start this computer knowing the MAC address of the PC’s network card. Accordingly, the issue of data security remains open.

The problem is relevant only for computers with wake-up technology enabled that are connected to any public network. For computers home network– the level of security is high.

On the other hand, even by turning on a remote PC by sending it a “magic” packet, an attacker will not be able to bypass the PC’s security settings. Login password account, password for starting BIOS(if this option is set), personal settings the security of the firewall inside Windows and other security-related issues - the attacker will have to somehow bypass, because Wake-ON-Lan technology only allows you to turn on the computer remotely, but does not give direct access to information on the computer.

There have been cases when hackers, using a bunch of server technologies, such as PXE and DHCP, still gained access to the operating Windows system on a remote PC, using the installation installer to bypass the protection Windows image, specially configured “for yourself”, for your selfish goals. But this is the lot of a narrow circle of IT specialists with high level knowledge that is unlikely to be coveted by the average home PC of an ordinary user.

To summarize. Practical use of Wake-ON-LAN

So, we learned what a technology for remotely turning on a computer called Wake-ON-Lan is. The technology itself is not new. But despite this, it has more and more application options - no longer only in any business solutions using extensive local networks, managed servers operating on various network technologies etc., but WOL can already be applied in everyday life, at home, or within the tasks of a small office.

As an example, you can use WOL when creating a technologically advanced eco-space “ smart House" Indeed, a very concise, competent, and convenient solution. No need to purchase any additional equipment or software to organize at home local server With remote access, which can already control home devices, obtain statistics on their operation, etc.

Do you use this function PC in your life, work? Share your experience and impressions about using Wake-ON-Lan technology in the comments under this article!

Also on the site:

Setting up Wake-On-Lan in Windows 10 updated: February 25, 2018 by: Vladimir

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 industrial standard protocol to turn on (wake 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 according to a 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 magic packet can be sent from both the operating system to 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, 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 network adapter from the list of devices.

Right click mouse on it, select from the “Properties” 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 button 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 great utility, which will help you determine whether your motherboard supports the Wake-on-LAN function 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 the possibility enable Wake-on-LAN 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 you must 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

Determine if your motherboard supports Wake computer On Lan, yes. going into CMOS settings Setup 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 mechanisms supported are listed network card. 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 button when finished.

- You will also need to know the MAC address of the network card ipconfig – all

- Practice Wake usage On Lan revealed one more 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