How to turn on the computer remotely and turn it off remotely?
One: Basic condition of remote wake-up \ x0d \ x0d \ wake on LAN (WOL), commonly known as remote wake-up, is a function supported by many network cards. The realization of remote wake-up is mainly to send packets with special format to the target host. MagicPacket, a software made by AMD, is used to generate special data packets needed for network wake-up, commonly known as magic packets. Although MagicPacket format is only a technology developed and popularized by AMD, and it is not a world-recognized standard, it is still supported by many network card manufacturers, so many network cards with network wake-up function are compatible with it. \x0d\ Boeing, IBM, Cisco, US Army, Canadian Customs and Taxation Bureau, Intel Corporation, Compaq Corporation, Lucent Corporation, Microsoft Corporation, Dell Computer Corporation, Hewlett-Packard Corporation, Siemens Corporation, Walter Disney World Corporation, CompuwareCorp, AMD Corporation (that is, the iron company), Nortel Networks Corporation, Macromedia Corporation, British Telecom Corporation and Yi Bei Corporation are all using WOO. \x0d\ To realize remote wake-up, hardware settings are also required: \x0d\ Both the motherboard and the network card must support remote wake-up function. Generally, the motherboards now support this function (motherboards after 2002), and the motherboards supported generally have a special 3-core socket to supply power to the network card when it is turned off. But not all network cards support this function (especially some cheap low-end network cards). It is very simple to judge whether the network card supports the remote wake-up function. All network cards supporting remote wake-up have a 3-pin WOL interface and a 3-core remote wake-up cable. Just judge whether the network card has a WOL interface (some newer network cards may also support remote wake-up and have no WOL interface). This is because the popular motherboard supports PCI2.2 standard, and it does not need to supply power to the network card through a special WOL interface, allowing the motherboard to directly supply standby power to the network card through the PCI slot. \x0d\ 1。 After the hardware connection \ x0d \ network card is installed, plug one end of the remote wake-up cable into the WOL interface of the network card, and connect the other end to the 3-pin WOL remote wake-up interface of the motherboard (WOL_CON is usually marked next to this interface, but this step is not required if both the motherboard and the network card support PCI2.2 standard). \x0d\ It should be noted that some motherboards have integrated network cards with wake-up function. As long as the PCI card wake-up function is turned on, there is no three hole socket, let alone a dedicated three-core connection. \x0d\ 2。 CMOS Settings \ x0d \ It is very simple to turn on the CMOS remote wake-up function, just set the "LAN Wake-up" or "LAN Recovery" item in the "Power Management Settings" in CMOS settings to "Enabled" or "On". \x0d\ ATX power supply \x0d\ ATX power supply must be used, and its +5V standby current must be relatively large. According to Intel's suggestion, it needs to be above 600mA. The magnitude of the current can be found in the column of +5Sb (or +5aux, 5Sb) on the external logo of the power supply. (Most network cards can wake up below 0.7A) \x0d\ If the remote computer was turned off abnormally last time (power failure or shutdown suddenly, etc.). ), the wake-up may fail. If hibernation is used when the computer is turned off in Windows2000/XP system, it may also cause wake-up failure. This is because some network cards need to reset a flag, which only happens when the operating system shuts down normally. The realization of \x0d\ software is actually to send a MagicPacket to the target machine through socket. The format of the magic package contains 6 consecutive bytes of "FF" and a MAC address that repeats 16 times. You can fill in "ffffffff”+MAC address repetition 16 times in the data packet of any protocol (such as TCP/IP, IPX packet), and you can use this protocol to make a MagicPacket using this protocol. As long as NIC detects such fragments anywhere in the packet, it will wake up the computer. \x0d\ Suppose the Mac address of the accused computer is 0 1:02:03:04:05:06 (6 bytes), then the network card of that machine will wake up the computer if it finds the following fragment in the data frame. \ x0d \ ffffffffffff 0 102030405060 10203040 102030405060 10203040506 \ x0d \ 01020 304050601020304060654438 That is to say, no matter whether MagicPacket comes from LAN or WAN, as long as the network card detects Magic Packet, it can wake up. The most commonly used is UDP broadcast packet, without port number, as long as you know the MAC address of the controlled computer. \x0d\ Note: There are two kinds of UDP broadcasting, one is directed broadcasting. For example, if your network segment is 192. 168.0.X, you can just send it to 192.6438+068.0.255. The other is limited broadcast, and the broadcast address is 255.255.255.255 \x0d\ For more information, please refer to Magic Bag? Technical document "\ x0d \ ... technical resources/0,50 _ 2334 _ 2481_ 2494, 00.html \ x0d \ 2: LAN remote wake-up \ x0d \ x0d \ Please be sure to understand the remote. \x0d\ First of all, it should be noted that the client with any remote control software installed on your computer cannot realize remote wake-up. Remote control software such as PCAnywhere and RemoteAdministrator can't work at all when it is turned off, and it can't realize remote wake-up by SMS. Remote wake-up can only be realized based on the hardware of your computer. \x0d\ Now suppose that computer A and computer B are located in the same local area network, and computer A, that is, the master computer, needs to be used to wake up the accused computer B remotely. \x0d\ Then you only need to set two places in the CMOS settings (some people like to call it BIOS settings) of B machine: \x0d\ 1. Turn on the PCI card wake-up function. Without this setting, you may need to plug in a remote wake-up cable. \x0d\ The purpose of this step is to "power on the network card when it is turned off" \x0d\ 2. Turn on the "Wake-up LAN" or "Restore LAN" function; \x0d\ The purpose of this step is to "let the motherboard accept the wake-up signal sent by the network card" \x0d\ After setting, save and exit. \x0d\ Need to download a small software to wake up the local area network of computer A, here are two recommended. \ x0d \ PCNET magic packet Utility-AMD's products have an English interface, and can only be used after installation. \ x0d \ x0d \ Take AMD's Magic Packet as an example, download and install it on computer A, and the software is installed in the directory C:\pcnet\magic_pkt by default. Because no shortcuts will be added to the program items or the desktop, in order to run the software, users must execute magpac.exe in the installation directory themselves, and it is certainly more convenient to create shortcuts for the programs on the desktop. \x0d\ Run magpac.exe, click the "Power on OneHost" command in the "Magic Package" menu to display the "Send Magic Package to OneHost" dialog box (as shown in the figure). Enter the MAC address of the network card of computer B in Destination Ethernet Address, and then click the Send button. Machine b will start automatically. \x0d\ Magic Packet can also wake up many computers in the LAN remotely. \ x0d \ \ x0d \ 3: Remote Wake-up in WAN \ x0d \ x0d \ 1. Compared with local area network remote wake-up, the controlled computer only needs to add a device (such as router and firewall) that can obtain public IP address and set port mapping. \x0d\ At present, the mainstream broadband Internet access methods are nothing more than ADSL and cable (that is, video broadband and cable TV network), and broadband routing can realize * * * Internet access. Let's briefly talk about how to set up a router to obtain the IP address of the public network under these two ways of surfing the Internet. \x0d\ ADSL is divided into two types, one is fixed IP ADSL. You can choose the Internet access method with fixed IP address in the router, and fill in the public IP address assigned to you by telecom. The other is ADSL with dynamic IP. Set up PPPoE dialing in the router and fill in your user name and password. After successful dialing, the router will automatically get a public IP address. \x0d\ Cable, as long as the Internet access mode of "automatically obtaining IP" is set on the router, the router will automatically obtain a public IP address; \x0d\ After setting up the router correctly, you can directly check its public IP address in the connection status of the router. \x0d\ 2。 Set up "Subnet Directed Broadcasting" in the router, and set up port mapping to map a port of the router to any port of the controlled computer \x0d\ 3. As long as the power of the router is turned on, the master computer can send the magic package to the router through the Internet, and the router and the controlled computer are connected through the network cable, so the magic package can be sent to the controlled computer smoothly. Routers actually play the role of intermediate bridges. \x0d\ Attach a webpage that can send magic packages, Wake on LAN over Internet \ x0d \ x0d \ netmask, which is a noteworthy place. If it is not filled in correctly, the destination IP address will be wrong. \x0d\ Let's briefly talk about the process of waking up WAN remotely through an example \x0d\ Suppose that the master computer is computer A and the controlled computer is computer B. x0d \ The LAN environment where computer B is located is as follows: an ADSL is connected to the four-port router R 1, and the four ports of R 1 are connected to S 1 and machine B respectively. \x0d\ R 1, the IP automatically obtained after dialing is 12.34.56.78, and the IP of computer b in the local area network is192.168.1.1. \x0d\ Set the port mapping items in R 1 as follows:12.34.56.78: 9—>192.168.1.255:/kloc- 192.168.438+0.255 is 195 because when b is closed, the IP of192.168.167 is no longer the same as that of. In R 1, the IP of192.168.1.65438+. \x0d\ 1。 A machine sends a magic packet unicast containing FFFFFFFFFFFF and bbbbbbbbbbbbbbbb repeats 16 times to the ninth port of the target IP. \x0d\ 2。 When R 1 detects that the port number of the packet is 9, modify the destination IP and port number of the packet to192.168.1.255:168 according to the port mapping entry. At this time, the packet R 1 is recognized as a directional broadcast packet because R 1. \x0d\ 3。 R 1 broadcasts this broadcast packet to four ports, and all ports connected with r 1, S2, S3 and S4 receive this broadcast packet, even if B is turned off; \ x0d \ The computer's network card will wake up when it detects the magic packet containing its own MAC address information in the broadcast packet, while other computers will only discard the packet after receiving it. \x0d\ 4。 In practical application, it is not recommended that the host communicate with the router through the IP address, because once the router regains the IP address, the remote wake-up will be invalid. As long as the router supports the dynamic domain name resolution (DDNS) function, you can set the route to automatically re-register the IP address with the DDNS provider when the IP address changes, and the DDNS provider will resolve the domain name you applied for according to your account. After the setting is successful, you can communicate with the router through the fixed domain name to wake up the computer directly connected to the router. \x0d\ \x0d\ IV: Modem Wake Up \ x0d \ x0d \ Network Remote Wake Up You can also use a modem. As long as the motherboard supports wake-up on InternalModem(WOM), you can use WOM to realize remote wake-up wherever the mobile phone can reach. Ordinary built-in modem can't get +5Sb standby current directly through PCI slot, so it is necessary to insert a "WOM" line into the WOM slot of the built-in modem and motherboard. If an external modem is used, this problem does not exist because the operating voltage is provided by the independent power transformer of the external modem. \x0d\ Please make sure that the power of the host and modem is turned on and the telephone line is plugged in. Find the item of modem ringing recovery or POWERON BYRING in the power management settings, and set it to on or enabled. As long as the modem is turned on, you can wake up remotely through WOM by dialing the phone number connected to the modem with another phone. When using WOM to wake up remotely, you don't have to worry about the phone bill, because the modem can turn on the phone as long as it detects the ringing of the phone, without answering the phone. However, it should be noted that this is also a disadvantage of WOM, because all incoming calls will wake up immediately, and the incoming calls are probably not for booting. \x0d\ \x0d\ V: Computer Controller Awakens \ x0d \ x0d \ netman Computer Controller is a remote boot product produced by Nanning netman Computer Co., Ltd., which has two versions: fixed line and mobile phone. When installing, insert the controller into the PCI slot of the computer without installing other software or drivers on the computer. The fixed-line version needs to plug a telephone line from the phone to the controller, and the mobile version needs to put a mobile phone card on the controller. After installing the controller, you only need to dial the phone number or mobile phone number to realize remote startup. \x0d\ Dial the phone number or mobile phone number connected to the controller. After there is no response within the specified time, the controller automatically goes off-hook and enters the startup platform. At this time, the voice prompts to enter the login password for verification, which solves the shortcoming that all calls from WOM will be awakened as soon as they come in. Need to be reminded that after entering the platform, you need to charge the phone bill according to the normal communication fee. \x0d\ After verifying that the password is correct, start and stop the computer according to the voice prompt: \x0d\ Press the 1# key, which is equivalent to manually pressing the power-on key on the computer panel to start the computer. \x0d\ Pressing the 2# key is equivalent to manually pressing the power-on key on the computer panel to shut down the computer. If the computer is turned off, you will be prompted that the command is invalid. \x0d\ Press 3# to modify the ringing time. Need to remind everyone that the general telephone ringing time will not exceed 50 seconds, if it exceeds, it will automatically hang up, so remind everyone not to set the ringing time for more than 50 seconds. \x0d\ Press the 4# key to modify the login password. The default login password is 123456. It is best to change it to another 6-digit password when using it. \x0d\ Pressing the 5# key is equivalent to manually pressing the power button on the computer panel for 6 seconds. When the computer crashes, you can use this function to force the computer to shut down. After a few minutes, just restart. \x0d\ If you forget the login password, you can press the reset button next to the telephone socket to restore the settings to the factory settings, and the password will be restored to 123456.