Wake-on-LAN from outside your network
Updated
Wake-on-LAN packets are local broadcasts, and a home router does not pass them in from the internet. To wake a computer from outside, you need something inside the network that is awake to send the packet, or a router set up to pass it on. For most homes, an awake relay is the dependable choice.
Why Wake-on-LAN stops at your router
Wake-on-LAN wakes a sleeping computer with a magic packet, a small packet that tells its network adapter to wake the rest of the machine. On hardware that supports Wake-on-LAN, the adapter keeps listening for it while the computer sleeps.
At home, your phone and the computer are on the same network. The packet is sent as a local broadcast to every device on that network, and the sleeping computer's adapter hears it. The Moonlight Wake-on-LAN wiki puts the outside case plainly: Wake-on-LAN is not designed to work over the wider internet.
From work, mobile data or a hotel, your packet reaches your router's public address first. A home router does not pass a broadcast in from the internet, and the sleeping computer has no live connection the router can hand it to. That gap is the whole problem. Every option below fills it in a different way.
Option 1: an awake device inside your network
The dependable option is to let a device that is already awake at home send the packet for you. You ask from anywhere. The awake device picks up the request and broadcasts the packet on the local network. The request travels over the internet. The magic packet never has to.
This is a common, proven pattern, not a WakeBeacon invention. TeamViewer's help asks for a second computer on the same network that is turned on 24/7, and AnyDesk requires at least one additional AnyDesk device in the network of the sleeping device to be online. The Moonlight wiki lists the same job done by a router or NAS with a wake feature, an always-on Raspberry Pi, or Home Assistant.
WakeBeacon's version of this pattern is the awake relay. The request is queued in your account. An awake WakeBeacon computer on the same network claims it, sends the packet and reports the result. No router ports are opened.
- Install the agent on a second computer at home that usually stays awake.
- In that computer's settings, turn on Let this computer relay wake requests and save.
- In the sleeping computer's settings, choose that computer as its relay and save.
- From anywhere, tap Wake through relay in the phone app or the web dashboard.
The relay usually claims a request within seconds. Its once-a-minute check-in is the fallback. Full setup is in the awake relay guide.
Option 2: router port forwarding
The other direct route is to set your router to pass the packet on. In WakeBeacon, your phone sends to the last public IPv4 address the agent reported, on UDP port 7 or 9 forwarded by your router. It needs a reachable public IPv4 address, and it can work for a while and then stop.
- Confirm your connection has a reachable public IPv4 address. The next section explains how to check.
- On the router, forward UDP port 7 or 9 to the network's broadcast address, which reaches every device on the local network.
- If your router offers a broadcast forwarding rule or a static ARP entry, set that up too. A DHCP reservation alone is usually not enough.
- Turn on router forwarding in the computer's settings in WakeBeacon and pick the same port.
- Test from mobile data, with Wi-Fi off on your phone.
ARP is the router's map from a local address to a device's hardware address. While a computer sleeps, the router can forget that map, and a packet forwarded to the computer's own address has nowhere to go. The Moonlight wiki warns that forwarding port 9 to the computer works for only about two hours; an expiring ARP entry is the usual reason. A DHCP reservation keeps the address assigned, but it does not keep the ARP map in place. Broadcast forwarding avoids that map.
If your public address changes while the computer sleeps, the stored address also goes stale. The step-by-step version is in the router forwarding guide.
When port forwarding can't work
Carrier-grade NAT is a common blocker. NAT, or network address translation, is how a router shares one public address among the devices behind it. With carrier-grade NAT, your provider does that sharing one level up, for many customers at once. Your router then has no reachable public address, so its forwarding rule has no public door to open.
- Open your router's status page and note the WAN address. WAN is the wide area network, the provider side of the router.
- On a device at home, open a “what is my IP” site and note the address it shows.
- Compare the two. If they differ, something upstream is translating addresses before traffic reaches your router.
- Check the WAN address against 100.64.0.0/10, for example 100.64.x.x to 100.127.x.x. RFC 6598 reserves that shared address space for carrier-grade NAT, so an address in it puts your router behind your provider's NAT.
Two more cases close this route. WakeBeacon's router route sends to a public IPv4 address, so an IPv6-only connection rules it out. A dynamic public address, one your provider reassigns from time to time, can change while the computer sleeps and leave the stored address stale.
Mobile and satellite home connections may also sit behind carrier-grade NAT, so run the same comparison on yours. If forwarding cannot reach your router, an awake relay remains open to you, because it needs no inbound public address.
Option 3: a VPN into your home network
A VPN, or virtual private network, can place your phone on your home network from anywhere. Tools such as Tailscale and WireGuard do this. Your phone can then send the broadcast packet as if it were at home.
This is option 1 with extra setup. An always-on device at home still does the work, as the VPN host or as the sender. Tailscale's own Wake-on-LAN guide builds this on a Raspberry Pi running UpSnap, left on at home. The Moonlight wiki describes the same shape, with a router, Pi or NAS hosting the VPN.
- Set up the VPN on an always-on device at home, such as a router, a Raspberry Pi or a NAS, following that tool's own guide.
- From outside, connect your phone to the VPN.
- Send the wake, then wait for the computer to check in before you connect to it.
The options, compared
The table sums up the general case. Test your route from away from home.
| Option | Needs another device awake at home? | Needs router changes? | Works behind CGNAT? | Works when your public address changes? |
|---|---|---|---|---|
| Awake relay | Yes | No | Yes | Yes |
| Router forwarding | No | Yes | No | Not reliably |
| VPN into your home network | Yes | Sometimes | Sometimes | Often |
Two more WakeBeacon routes
Wake on next check needs no relay. It is an opt-in alarm in the operating system that wakes the computer every 15 minutes to every 4 hours to check your account for requests. This is delayed until a check succeeds. It is not an immediate wake, and it needs automatic checks enabled on supported hardware. Battery power, a closed lid, hibernation, shutdown or unavailable internet can prevent a check.
Intel AMT is a separate route for compatible Windows PCs where it is already set up and its service connection is ready. WakeBeacon checks availability before sending. An Intel processor alone is not enough. It takes extra setup, and this is not a general Windows wake guarantee.
How to know it worked
A packet sent is not proof of a wake. WakeBeacon shows a wake in stages.
- Requested: your phone or dashboard queues a wake for one computer. It expires if nothing picks it up.
- Claimed: an awake relay on the same network claims the request.
- Packet sent: the relay sends the magic packet and reports that it sent it.
- Checked in: the computer reports in. Only this stage counts as a confirmed wake.
Send the wake, then wait for the new check-in before you open remote access or your usual remote app. If no check-in follows, the computer has not confirmed that it woke. Work through the Windows Wake-on-LAN guide or the Mac Wake for network access guide, then test again from mobile data.
Questions
Is it safe to forward a Wake-on-LAN port?
Forwarding UDP port 7 or 9 opens that port to the internet, so anyone can send packets to it. A packet can wake the computer, but waking alone does not sign anyone in or open the desktop. The Moonlight wiki lists direct port forwarding last among its recommended ways to wake over the internet. Never forward your router's settings page. If an open port does not sit well with you, use an awake relay instead.
Can I wake a computer that is shut down instead of asleep?
It depends on your hardware. WakeBeacon's Windows setup says to test with sleep first. Waking from a full shutdown depends on the motherboard and is often off by default. A Mac wakes from sleep, not from shutdown.
Can I wake it from my phone on mobile data?
Yes. That is the case this guide covers. With an awake relay, the request is queued in your account and the relay at home claims it. With router forwarding, your phone sends to your public address. Either way, test with Wi-Fi off on your phone, so you know the outside route works before you rely on it.
Does it work over Wi-Fi?
It depends on your hardware. WakeBeacon's setup calls Ethernet the most reliable connection for waking, and says to pick Wi-Fi only if that is how the computer is connected. The Moonlight wiki calls Wake-on-LAN over Wi-Fi usually unstable and recommends a wired connection where possible. Test your exact computer and adapter from sleep first.