PC Power Management: How to Shut Down Your Computer from Your Phone via Wi-Fi

Situations where you need to quickly shut down your home PC while in another room or even outside your apartment arise quite often. Modern technologies make it possible to implement power management. computer remotely, using only smartphone and a wireless network. This is not only convenient, but also a way to save energy if you forgot to turn off a powerful gaming or work device. PC before leaving.

There are several proven methods for accomplishing this task, from built-in operating system functions to third-party applications. The main requirement for most methods is that the devices are in the same local network, although some solutions allow power management via the internet. It is important to understand that for proper operation, preliminary setting BIOS/UEFI and router parameters.

In this guide, we'll explore the most effective and secure ways to monitor your equipment's energy consumption. You'll learn how to use remote access protocols and specialized utilities. A critical requirement for most methods to work is a static IP address or a reserved DHCP address for your computer on the local network.

Preparing BIOS and network card for remote management

Before installing software on your phone, you need to make sure your computer's motherboard and network card are ready to receive control signals. The technology behind this process is called Wake-on-LAN (WoL), but it also often allows you to shut down the system if the software is configured correctly. Enter your computer's BIOS/UEFI upon boot, usually by pressing Delete or F2.

In the settings menu, you need to find a section related to power management or peripheral configuration. Look for options with the words Power Management, APM Configuration or Wake on LANMake sure this feature is enabled. Without this step, the network card will be completely powered off after the PC is shut down and will not respond to commands.

⚠️ Note: The BIOS interface may vary depending on the motherboard manufacturer. If you don't find the option you need, check the technical documentation for your model, as the item names may vary.

Next, you need to configure the network card itself in the Windows operating system. Open device Manager, find your network adapter in the "Network Adapters" section and go to its properties. On the "Power Management" tab, enable the device to wake the computer from standby. Also, on the "Advanced" tab, check that the following options are enabled: Wake on Magic Packet And Wake on pattern match.

Using built-in Windows tools and Remote Desktop

One of the most reliable ways of management is to use a protocol RDP (Remote Desktop Protocol). If you have a Windows Pro version installed on your computer, you can use the standard Remote Desktop Connection app on your phone. However, to shut down your PC using this method, you must first log in and then initiate shutdown.

To implement this method, install the application Microsoft Remote Desktop to your smartphone (available for Android and iOS). Add a new computer by entering its IP address on the local network and user credentials. Once connected, you'll see the PC desktop on your phone's screen. Tap Start → Shutdown as usual.

  • 📱 Install the official Microsoft Remote Desktop app from the app store.
  • 🔑 Create a password for your Windows account if one is not set (RDP requires a password).
  • 🌐 Make sure your firewall allows connections on the port 3389.
  • 💻 Enable the "Allow remote connections" option in system properties.

This method is advantageous because it doesn't require installing any additional bloatware, but it has a limitation: you won't be able to shut down the computer if it's already off or in deep sleep without waking it up first. Also, Home versions of Windows don't support the RDP server role out of the box, requiring the use of third-party alternatives.

☑️ Checking RDP readiness

Completed: 0 / 4

Third-party remote control applications (TeamViewer, AnyDesk)

If built-in tools seem complicated or inaccessible, popular remote access programs can help. TeamViewer And AnyDesk Allow you not only to view the screen but also to control the power supply. These applications operate through their own servers, allowing you to control your computer even when you're not on the same Wi-Fi or internet network.

Install the full version of the program on your computer and the mobile app on your phone. Register for a single account or use a permanent ID and password. The mobile app interface often has a dedicated power button, or you can simply connect to the desktop and shut down your PC using the standard Start menu method.

Application Difficulty of setup Work via the Internet Paid version
TeamViewer Low Yes For commerce
AnyDesk Low Yes For business
Chrome Remote Average Yes No (free)
RustDesk High Yes (own server) No (Open Source)

The main advantage of such solutions is their cross-platform nature and simplicity. You don't need to configure ports on your router or deal with IP addresses. However, for the program to work, it must be running on your computer and have permission to interact with the system. In some cases, antivirus software may block remote control attempts, considering them suspicious activity.

Security when using TeamViewer

Use two-factor authentication and complex passwords, as popular programs are often targeted by hackers. Avoid simple passwords like 1234.

Setting up Wake-on-LAN using dedicated applications

Technology Wake-on-LAN Traditionally used to turn on a PC, many modern implementations also allow you to send a shutdown command if the appropriate daemon is running or a task is configured on the computer. To do this, you'll need a WoL client app on your smartphone, such as Wake On Lan for Android or Mocha WOL for iOS.

Unlike RDP, here you send a special magic packet to the MAC address of the network card. To shut down the computer in response to this signal, you need to create a task in Task Scheduler in Windows. Create a new task, select "Power Management Data Packet Arrives" in the Triggers, and specify the command in the Actions. shutdown.exe with parameter -s -f -t 0.

After setting up the task in Windows, add the computer to the app on your phone. You'll need to enter:

  • 📟 MAC address of the network card (format XX:XX:XX:XX:XX:XX).
  • 🌐 Broadcast IP address (usually ends in .255, e.g. 192.168.1.255).
  • 🔒 Port (standard use) 9 or 7).

⚠️ Warning: Using WoL from an external network (via the internet) requires setting up port forwarding on your router and a static IP address. This can create a security vulnerability if you don't use complex passwords and the latest router firmware.

This method is the most "native" to the network infrastructure, but requires the most technical expertise. A firewall or task scheduler configuration error will result in the command being ignored by the system. Nevertheless, it's an excellent automation method for advanced users.

📊 Which control method do you find most convenient?
RDP (Built-in)
TeamViewer/AnyDesk
Wake-on-LAN packets
Smart socket

Alternative Method: Smart Plugs with Wi-Fi

If software methods seem too complicated or unreliable, there is a hardware solution - smart socketDevices from brands like Tuya, TP-Link Tapo or Xiaomi Allows you to control the power supply remotely via a smartphone app. This isn't a standard Windows shutdown, but it solves the problem of forgetting your PC while it's on.

To use this method safely, set the option in BIOS Restore on AC Power Loss (or similar) in the state Power OffThen, if the power goes out suddenly, the computer won't turn on automatically. To shut down the PC, simply send a command in the power outlet app. However, this method isn't suitable for a proper OS shutdown, as it cuts power immediately.

A more advanced use case for a smart plug is integration with a smart home system. You can set up a scenario: "If I leave home (phone geolocation), send a command to shut down the PC via the network, and after 5 minutes, if the PC is still active (wattmeter consumption monitoring), turn off the power to the plug." This requires a hub, for example, Home Assistant or Yandex Stations.

Troubleshooting and connection diagnostics

Users often encounter a situation where all the settings are configured, but the computer doesn't respond to commands from the phone. First, check to see if Windows Firewall is blocking incoming connections. Try temporarily disabling your antivirus for diagnostics. Also, make sure your phone and computer are on the same subnet.

If you are using a router with client isolation feature (AP Isolation), devices on a Wi-Fi network cannot "see" each other. This feature must be disabled in the router's wireless settings. Furthermore, dynamically changing the computer's IP address can cause the phone app to access the old address.

To diagnose the issue, use the command line on your phone (if you have a terminal) or specialized network scanning apps to check if the computer is visible. Ping the PC's IP address. If the ping works but the command fails, the problem is in the software settings. If there is no ping, the problem is with the network or firewall.

Why does the computer turn off by itself after trying to turn it on remotely?

This may be due to a conflict between the power settings in the BIOS and Windows. Check if the automatic shutdown timer is enabled or try updating your network card drivers. It's also possible that the Wake-on-LAN command is being interpreted incorrectly by the system.

Is it possible to turn off a computer if it is in hibernation mode?

Yes, most network cards continue to operate in hibernation mode and can receive Magic Packets. However, if the computer has entered deep sleep mode (S3/S4/S5) and the BIOS settings do not allow wake-on-LAN, the command will fail. Make sure that you have permission to wake the device in Device Manager.

Is it safe to open ports on a router to control a PC?

Opening ports (forwarding) creates a potential security hole. If you're not an experienced user, it's better to use cloud-based solutions (TeamViewer, AnyDesk), where the connection is initiated from within the network, or use a VPN to access your home network.

Does this work via mobile internet (4G/5G)?

Direct connection via a local IP address over a mobile internet connection doesn't work because the phone is on a different network. To control the device via a mobile network, you need to either forward ports on the router using a public IP address from the provider or use intermediary cloud services (TeamViewer, Chrome Remote Desktop).