Is it possible to turn on the computer remotely. Remote turn-on of the computer over the network and via the Internet. Advanced DNS and Router Settings

In the review, a universal outlet that is controlled via the Internet for remotely turning on and off the computer. Wifi smart socket. Not to say she's downright smart, just controlled through Wi-Fi network... Connects as per local network and via the Internet. You choose what it will be used for. For example, in a country house, to turn off or turn on the heating. Unlock the apartment or turn on a humidifier. Or maybe just water the flowers or pump water. When ordering, you choose the type of connector.

Maximum switching current 10 amperes. A small diagram explaining how it works. The complete set includes a warranty card and a small instruction. In the store you can download free app... There are also for iPhone and android. Ewelink app.

After switching on, the computer starts up automatically. While it turns on, let's go over the program. There is support for amazon echo, google home, google nest here. It is a system that allows you to manage smart home... Since this outlet is a part of it, it was named “Smart”. In fact, she only knows how to turn on and relieve the voltage on the line. You can also set the timer mode. One-time or repeated switching on, set date and time. For the most part, it's convenient for someone to even come in handy.

The host has a computer for editing. It often happens that by remotely connecting to it, you need to change something. So, in order to connect, you need to start it first. But how to do it? But the most sophisticated people know that you can connect to a computer via a wire and submit a magic packet. This is a special combination of code that will run system unit... The computer starts working and the program is loaded on startup. And everything is already simple. You work like at home. Here is just one setback. Kirill is sitting in the kitchen, and he has no way to connect via wire. Used hellish fast internet via Wi-Fi. How do you start a computer to make it work, because there is no wire? Comes to the rescue this device.

Setting up a smart socket Wifi smart socket

Let's see how to do it. We start the computer, go to the BIOS. You need to go to additional settings. Here we already meet the usual bios familiar to us. Resuming power supply. What should we accomplish? Power it. This is to turn on the computer. Press f10 and agree to save the settings. We launch the program on the phone. Simple, isn't it!


How profitable is it in terms of electricity consumption? You know that a computer that is turned off draws current because its power supply is still plugged into an outlet. It also has its own additional power supply, which is used for the network card. And a couple more devices operating in standby mode.

To understand and read whether it is worth it or not, we look at this picture. Only 0.7 watts. This is not so little. On average, we get about 0.5 watts of savings. We plug the extension cord into an outlet. The computer started working. Power is about 100 watts. I put out the computer, but it is also connected to the network. The monitor is turned off. With a power of about 2 watts. It is easy to estimate that this device is 4 times more economical than what the system unit offers us.


The socket is used by the master for two weeks. She never failed and did not hang. As a rule, if the device can freeze, a button is made so that it can be rebooted. There is no such thing here. There is only one multifunctional button. She is responsible for switching and for entering the configuration mode.
Watch the video from 6:30 to continue. With this device, this is an outlet, you can remotely turn on and off the computer, you only need the Internet and Wi-Fi.


KIRILL NESTEROV.

Turning on a computer remotely, over a network or via the Internet - Wake On Lan

Any modern network card and BIOS motherboard support technology that allows you to enable this computer remotely.

How WOL works

When the function is enabled, the computer, turned off in a normal way (not in emergency mode), continues to supply standby power (5V with low current) to the network card, which is in standby mode for only one packet - Magic packet(magic package). After receiving this packet, the network card gives a signal to turn on the computer.

You can transfer this package using a special program, for example WOL v2.0.3, or a PHP script.

Configuring the computer to be turned on

In the BIOS of the computer, enable the Wake On Lan technology, this option is located in the power management section, and can be called (set to Power-On), Wake Up On LAN (to Enabled), Wake on LAN from S5 (to Power-On ), or ERP Support (to the Disabled position).


Now, shutting down the computer in a normal way, it will wait for the magic packet, and turn on after receiving it.

How to send a magic package

To send the magic packet and then turn on the computer, you need to know MAC address(physical adress) network board the computer to be turned on ().

Since a turned off computer simply cannot have any IP address, it can receive a packet only in broadcast mode. A turned off computer also cannot respond to a TCP packet that requests a connection on a port, and therefore, it is logical to assume that packet must be UDP(although it doesn't matter). Destination port in this case not important, the network card will accept the magic packet on any port, but it is generally accepted 7th and 9th ports, the default ports for WOL. From the above, it follows that the computer to be switched on and the computer from which the packet is sent must be on the same network, otherwise the broadcast packet will most likely not go beyond the router (we will talk about switching on via the Internet later).

As mentioned earlier, you can send a magic packet using a special program, in which you only need to enter the MAC address of the computer to be turned on and its IP to create a broadcast on this network. For example, if the IP of the computer is 192.168.1.10, then the program will send 192.168.1.255 to this ip and broadcast. And if you need to organize the inclusion of computers online (through a browser), then this can be done using a PHP script.

Wake On Lan over the Internet

If you have direct connection to the Internet (via DHCP) and a dedicated IP address, and if your provider supports the routing of broadcast packets, then your computer can be turned on to send a magic packet to the broadcast of your network, for example, your IP is 37.37.37.59, then you need to send the packet to the address 37.37 .37.255.

But in most cases, for one reason or another it won't work, then you must have a router. The router (router) connects to the Internet, and your computer connects to this router via a cable. In this situation, the magic packet must be sent not broadcast, but to the external IP address of the router. And in the router, you need to create a rule (port forwarding) in which to register the forwarding of the desired port (by default 7 and 9 for a magic packet, although you can send to any one) from WAN to LAN to broadcast, that is, to XXX.XXX.XXX.255 ...

But unfortunately, not all routers are able to forward ports to broadcast, some D-link models, all Linksys and Cisco, can do this. MikroTik routers, and in my ZyXel.

Magic package structure

A magic packet is a special sequence of bytes that is broadcast over UDP for normal operation. The package starts with 6 bytes equal to 0xFF and then goes MAC address repeated 16 times... Let's say that the MAC address 00: 1D: 7D: E5: 06: E8, then the magic package will look like this (without line breaks, of course):

FFFFFFFFFFFF
001D7DE506E8
001D7DE506E8
001D7DE506E8
001D7DE506E8
001D7DE506E8
001D7DE506E8
001D7DE506E8
001D7DE506E8
001D7DE506E8
001D7DE506E8
001D7DE506E8
001D7DE506E8
001D7DE506E8
001D7DE506E8
001D7DE506E8
001D7DE506E8

Don't forget to leave

Let's say you have on your local network remote computer s, to which you periodically connect from your computer via remote desktop or using special programs Team Viewer or Radmin, it doesn't matter. And to connect, you do not need the remote computer to be turned on, but if it is turned off and you are far away or too lazy to go to turn it on, press the power button. This is where WOL technology comes to the rescue, which stands for Wake On Lan, which translates as "wake up over the network." What does this technology do ?, it sends a "magic packet", so to speak, this packet carries data with a certain sequence.

Requirements for the remote computer to this technology worked this:

  1. Motherboard powered by ATX;
  2. BIOS here you need to enable Wake-On-LAN support, and configure power saving correctly.
  3. Network Card with support for WOL technology (also almost everything, but it still needs to be enabled in the settings of the network card);

And so we made sure that we have a motherboard with ATX power supply, these are almost all modern computers.

We go into BIOS, find in the menu something similar to Power Management Setup or in Advanced. We turn on the Wake-On-LAN function, this item looks different depending on the BIOS, for example:

  1. Resume by LAN
  2. Wake up on lan
  3. WOL From Soft-Off
  4. Power Up on PCI

In general, see everything about the phrases "Power Up", "WOL", "Wake Up", "Resume by" but related to LAN, MAC or PCI.
We transfer the operation of the motherboard to a certain power saving mode Suspend Mode, mainly computers support ACPI and only allow two modes S1 (POS) and S3 (STR), but we will be interested in S1 (Power on Suspend) mode, this is also very important, otherwise on our the network card will not be continuously supplied with 5V when the computer is off, and we will not be able to turn it on.

After turning on the setting in the BIOS, you need to make sure that when the computer is off, the green or orange indicator on the network card is on, which will mean that everything has been done correctly.

  1. Wake on magic packet
  2. Wake on pattern
  3. Wake on lan
  4. WakeOnLan from PowerOff
  5. Wake from shutdown

If any settings were not found, then you will have to read the documentation for your network card or motherboard yourself and find out which items this all includes, but they are definitely there and must be included, otherwise nothing will work.

And after you have set up both the BIOS and the Network Card, turn off the computer and look and once again make sure that the green light on the back of the network card is on, it should be on, thereby indicating that it is ready to receive a magic packet.

Remote turn-on of a computer via a local network

In this case, it is not necessary to know the IP address of the computer. It is enough to send a broadcast packet 225.225.225.225 to the local network.

  1. You need to know the MAC address (physical address) of the network card of the computer you are going to turn on.
  2. You need a program that will send this magic packet (_http: //www.depicus.com/wake-on-lan/wake-on-lan-gui.aspx).

Turning on a computer remotely via the Internet

  1. You need to know the white IP address of the remote computer to be turned on;
  2. MAC address;
  3. If at the other end the remote computer is in a local network under the control of a server or router, then you need to configure them by forwarding ports to the included computer in this network.

Let's say your white IP is 109.xxx.xx. 112, then you need to register in the router in the section “Forwarding one port” an External port, for example 4545 (or another unused one), and Internal port 3389 (RDP port, only this is required), To the IP address 192.168.1.123 of the included computer.

P.S .: It is very important when remote connection over a local network or via the Internet, do not forget to check the ports for availability (openness), especially external, otherwise your magic package will be denied access, you can check using the service _http: //2ip.ru/check-port/. If the port is closed, then it is blocked by the Firewall (Firewall) on the router or server. It needs to be opened.



There are situations when you need to turn on the computer remotely. This process is carried out using the Internet and requires presetting hardware, drivers and software. We will tell you in detail about starting a PC over a network through a popular remote control program. Let's take a look at the whole algorithm of actions in order.

The BIOS has a standard Wake-on-LAN tool, the activation of which allows you to start a PC via the Internet by sending a specific packet of messages. The main link in this process is the above-mentioned TeamViewer program. Below in the picture you can find short description algorithm for waking up the computer.

Requirements for waking up

There are a number of requirements that must be adhered to in order for the PC to start successfully using Wake-on-LAN. Let's consider them in more detail:

  1. The device is connected to the mains.
  2. The network card has Wake-on-LAN on board.
  3. The device is connected to the Internet via a LAN cable.
  4. The PC is put into sleep, hibernation, or turned off after "Start"Completion of work.

When all these requirements have been met, when you try to turn on the computer, the operation should be successful. Let's take a look at the process of setting up the necessary hardware and software.

Step 1: Activating Wake-on-LAN

First of all, you need to enable this function via BIOS. Before starting this process, make sure once again that the Wake on Internet tool is installed on the network card. You can find out this information on the manufacturer's website or in the instructions for the equipment. Next, do the following:


Step 2: configuring the network card

Now you need to start Windows and configure network adapter... There is nothing complicated in this, everything is done in literally a few minutes:

Please note that you will need administrator rights to change the settings. You will find detailed instructions on how to obtain them in our article at the link below.

Step 3: Configuring TeamViewer

The last step is to set up TeamViewer software... Before that, you need to install the software and create your account in it. This is done very easily. Everything detailed instructions you will find in our other article. After registration, you should do the following:


  • Tutorial

... and also without port forwarding, SSH / telnet and installation third party applications... From any computer connected to the Internet and even from your phone!

From time to time I need to turn on home computer when i'm not at home. Usually I did not get tired and called or sent a message with such a request to my wife, who is sitting at home on maternity leave. A very convenient tool remote control with a voice interface. However, this method has a number of disadvantages - she went for a walk, put the child to bed, or is busy with something else. Wanted simple solution from what is at hand.

First of all, we enable Wake on LAN in the BIOS of the motherboard, everyone does it in their own way, many have it enabled by default. On one of my PCs, there is not even such an option - it is always enabled.

Next, go to WinBox and connect to your router (if you want, you can via SSH or HTTP (S), I do everything in WinBox). If you open the RouterOS text console and browse there in the / tool section (or in the wiki-manuals ), then you can find the wol utility with the following syntax:

/ tool wol mac = XX: XX: XX: XX: XX: XX interface = ifname
Where ifname is the name of the interface from which the magic packet will be sent, XX: XX: XX: XX: XX: XX - mac address your computer.

It seems that everything is simple, but Winbox from the phone does not really start and the mac address from memory is tortured to enter. You can start SSH and send a single command to it, but this is also long and tedious. We use a firewall!

It is impossible to start execution of commands directly from the filter rules; of all actions, adding an address to the address-list is the most suitable for us, because it allows you to create a new object in operating system router accessible from scripts.

Let's add a new rule for the input chain and place it among the other allowing rules in this chain. Let's specify the tcp protocol and dst-port - any of the upper ports.

Select the action add src (you can also dst) to address list, specify the name of the sheet.


To track the appearance of records, we use a scheduler. Go to System -> Sheduler, create a scheduler task, set a name. We specify Start time: startup, and the desired interval, for example, every 15 seconds.

Let's write a simple script in the on event field:

: local WAKEPC: if ($ WAKEPC! = "") do = (/ tool wol mac = 00: 11: 22: 33: 44: 55 interface = bridge_lan / ip firewall address-list remove)
Do not forget to specify the correct mac, interface name and address-list. This script, upon detecting elements in the address list, will execute a command that sends magic packets to your computer, after which it will delete the entry from the address list.

To turn on your computer, just open a browser and go to the IP of your microtic, specifying the port that we set in the firewall rule: http://your.router.net:port, after which the firewall creates an entry in the address list, the scheduler task will detect this record, will run the wol utility, and delete the record from the address list. Easier than a steamed turnip, we can add the address to favorites so that we do not enter it every time.

Just don't forget about safety, this way is not protected by anything and anyone can turn on your computer, knowing or choosing the right port. For protection, you can use VPN, port knocking, whitelist or the Elusive Joe method - it's up to you. If you need to enable several computers separately in this way, create the appropriate number of rules on different ports, each of which will throw addresses into its own address list, we also multiply the script in the scheduler task using Ctrl + C, Ctrl + V, or create separate tasks for everyone - whatever you want.