Is Wake-on-LAN safe?

Updated

A magic packet can wake a computer that is set to listen for it. It cannot sign anyone in, run a command or open the desktop. The risk to weigh is narrower: who can reach the listening adapter, and whether you opened a router port to let them. This guide covers what the packet holds, who can send one, and how forwarding, a VPN and an awake relay differ.

What a magic packet can and can't do

A magic packet follows one pattern. A Texas Instruments hardware datasheet describes it as a short synchronization stream followed by 16 repetitions of the target computer's hardware address, with an optional password field covered below. The packet names the computer to wake by that address. It holds no command to run and no sign-in credentials.

That limits what it can do. It can wake a computer whose adapter is set to listen for it. It cannot sign anyone in, run a program, read a file or open the desktop. Anything after the wake, such as using the computer or opening a remote session, needs its own authentication, as long as the computer asks for its password when it wakes. Windows and macOS can both be set to require it after sleep.

WakeBeacon adds its own checks. Only a verified account can add computers or send wakes. On the relay route, the request is queued in your account and claimed by an awake computer on the same network. Remote access stays off until you enable it on that computer, and opening it needs a recent second-factor sign-in or a passkey confirmation. The packet wakes the machine. Your account and the computer's sign-in decide what happens next.

Who can wake your computer

The adapter does not check who sent the packet. Any device that can deliver a magic packet with the right hardware address can wake the computer. On your local network, that is any device already on it. The hardware address is not a secret. Devices on the network can learn it from normal network traffic.

From the internet, reach depends on your router. With no forwarding, a packet from outside reaches the router and goes no further, because Wake-on-LAN packets are local broadcasts. If you forward a wake port, anyone on the internet who sends the right packet to your public address can wake the computer. The guide to waking from outside your network explains how that gap is filled.

The harm from an unwanted wake is limited. The computer wakes, uses power and, if it asks for a password on wake, waits at its sign-in screen. Repeated wakes can be a nuisance. The wake itself gives the sender no access to your files or desktop. That access would need your sign-in and any second check you have set up. The larger exposure in a forwarding setup is the open port itself, covered below.

Forwarding to the broadcast address is a directed broadcast: your router takes a packet from the internet and broadcasts it to your whole local network. Routers usually block this by default. RFC 2644, which changed that default, records why: directed broadcasts had been used as amplifiers in denial-of-service attacks, where a packet delivered to many machines floods a target with replies. It requires the router option for receiving them to stay disabled unless the owner configures it. If your router refuses a broadcast forward, it is applying that default. Any forward needs a reachable public IPv4 address. The router forwarding guide covers it.

The SecureOn password some adapters support

Some network hardware supports an optional password in the packet, usually called SecureOn. The Texas Instruments datasheet describes a 6-byte password appended after the hardware-address repetitions when the feature is enabled, held in the adapter's own password registers. With it enabled, the adapter wakes only for a packet carrying the matching password.

Support varies at every step. The adapter must support SecureOn, its settings must expose the option, and the sending tool must be able to add the password. If any one lacks support, the option is unavailable. Check your adapter's documentation for whether it is offered and how it is set.

Treat SecureOn as a filter, not as sign-in security. It can stop a packet with the right address but the wrong password. It does not identify a person, and it protects nothing after the wake. The sign-in password and your account's second factor remain the controls that matter.

Port forwarding, a VPN and an awake relay, compared

Three routes wake a computer from outside. They differ in what they open and who can send a wake through them. Each relies on something different: your router settings, your VPN account, or your WakeBeacon account.

Ways to wake from outside, by what they open and who can send
RouteOpens an inbound port?Who can send a wake?Needs the router to accept directed broadcasts?
Router port forwardingYes. UDP port 7 or 9 at your public IPv4 address.Anyone on the internet who sends the right packet to that port.Yes, when forwarding to the broadcast address. Forwarding to the computer's own address avoids it, but often stops working as the router forgets the sleeping computer.
VPN into your home networkThe VPN itself may need one, or an outbound service. The wake packet travels inside the VPN.Only devices signed in to your VPN. Once connected, a device sends on the local network as if it were at home.No. The wake is broadcast locally, from inside the network.
Awake relay (WakeBeacon)No. No router ports are opened.Requests come from your account. An awake WakeBeacon computer on the same network claims the request and sends the packet.No. The relay sends the broadcast itself, from inside the network.

Read the relay row for what it is. It states what this route avoids: an open inbound port at your router. It also states what it relies on: the security of your WakeBeacon account, since requests come from your account, and a relay that checks the target is on its own network before sending. It does not make the computer's own sign-in stronger or weaker. Protect the account with two-factor authentication and a passkey where you can, as you would a VPN account.

Practical advice

  1. Never forward your router's administration page, on any port. If a router wake feature asks you to expose the settings page to the internet, leave that feature off. The Moonlight Wake-on-LAN wiki marks that option not recommended.
  2. Keep a sign-in password on every computer you can wake, and require it when the computer wakes from sleep. Then a wake ends at the sign-in screen, and the password is what makes that endpoint hold.
  3. Protect remote access with a second factor. In WakeBeacon, turn on authenticator-based two-factor authentication. Remote access needs a recent second-factor sign-in or a passkey confirmation, and stays off until you enable it on each computer.
  4. Turn Wake-on-LAN off on a computer that does not need it. An adapter that is not listening cannot be woken, by you or by anyone else. The Windows guide and the Mac guide show where the setting lives.
  5. Pick the outside route you are comfortable operating. If an open port does not sit well with you, an awake relay avoids opening one. If you already run a home VPN, waking through it adds nothing new to your router. Test the route from mobile data before you rely on it.

The packet is a narrow tool. The decisions that matter are in your hands: whether a port is open, whether the computer demands a password after it wakes, and whether the account that can request a wake has a second check.

Questions

Can a magic packet log someone into my computer or run a command?

No. The packet holds a synchronization stream and repetitions of the computer's hardware address, with an optional SecureOn password on hardware that supports it. It holds no command and no credentials, and it does not sign anyone in. A computer set to require its password on wake waits at its sign-in screen.

Can a stranger on the internet wake my computer?

Only if your setup lets their packet reach the adapter. From the internet, that takes a forwarded port at a reachable public IPv4 address, or a VPN or relay route the stranger is signed in to. With no forward and no such route, an outside packet stops at your router. On the local network, any device on it can send a magic packet.

Is forwarding a Wake-on-LAN port dangerous?

It opens UDP port 7 or 9 to the internet, so anyone can send packets to it. A packet can wake the computer, which costs power and can be a nuisance, but waking alone does not open the desktop. Forwarding to the broadcast address is a directed broadcast, blocked by default under RFC 2644. If an open port does not sit well with you, use an awake relay and protect its account.

Does the SecureOn password make Wake-on-LAN secure?

It narrows what can trigger a wake, on hardware that supports it. Some adapters accept a 6-byte password appended to the packet and wake only when it matches. Support varies across the adapter, its driver and the sending tool. SecureOn does not identify a person and protects nothing after the wake. Keep the sign-in password and your account's second factor as your main controls.

Related guides

Sources