WOL stops working after a few hours

Frejoh466

Reputable
Jul 5, 2015
11
0
4,510
So I'm trying to get WOL working, it works fine for a few hours, but then the computer wont accept my package from my phone. I have an ASUS RT-66U router with merlin, and if I send the package from there, the computer starts.

I created a script that logs the when I start and shout off the computer, so it stop responding to WOL package somewhere between 7:48-8:53 hours of down time.

On the phone I'm using my IP address, MAC address, sending 5 packages for 5 seconds, and using port 7. And it is working for the first somewhat 8 hours, then something happens and it stop responding, but I can still start it from the router.

I did read somewhere that I should use broadcasting instead, but was never able to get it to work. And I am trying to start it over the internet and not on lan.

So is there someone who knows a little about WOL who can tell me what I'm doing wrong and what actually happens?
 
It is likely because you are not using wake on LAN you are attempting to wake on WAN which does not really exist and all implementations are hacks to get it to work.

The key problem is the PC does not have a IP address because this is done at the OS level and there is no OS running. You can not send data to a IP that does not exist. The reason it works for a time on some devices is the ARP entries that map ip to mac have not timed out.

A Wake on LAN packer is defines to be a packet that is sent to the broadcast mac address that contains the mac of the machine to be woken in a special pattern.

To get this to work you must put in a static arp entry to a dummy ip that maps to the broadcast mac address. You can then put in a port forward rule point to that address. You send your wake on lan to the external ip of your router on that port.

Very technically a pc should not accept packets with IP headers in them but they seem to not care that there is other stuff in the packet as long as the special mac pattern exists.


 

Frejoh466

Reputable
Jul 5, 2015
11
0
4,510


So after roughly 8 hours the IP address get flushed, and until I start my computer and my OS request a new one, I wont be able to start it?

But my MAC address is still connect to my computer right? That's why my router can start it, so can't I tell the router to send the package to the to ether all computers on the network or just to the mac address?

Or I'm I out of luck and just need to start it within 8 hours?
 

Frejoh466

Reputable
Jul 5, 2015
11
0
4,510


So I need to create an static arp then bind that address to wol?
 
If you are unable to configure a static arp...

How about scheduling a dummy event to wake up the box every 7.5 hrs? Not as nice as making a static arp works, but is free and theoretically it should work.


p.s.: I see lot of advanced settings on my NIC, one of those says ARP OFFLOAD, I have no idea what it does, but maybe worth investigating.
 

Frejoh466

Reputable
Jul 5, 2015
11
0
4,510


Not unable, just don't know how. My knowledge on networking extend just to what an IP address is. So the Address Resolution Protocol (ARP) is new to me, but through google, I found that this should create an static ARP for Win10

Code:
netsh -c interface ipv4 add neighbors “Network Card Name” “IP Address” “MAC Address” store=persistent
and then I replace my IP address with the ARP address in my wol settings. Of course I could be totally wrong, but I'm doing trial and error to see what works.
 


Negative. This has to be configured in the router, and as bill says, you may not be able to do it. Download the router's manual, search for ARP, if you are willing to investigate this further on your own.

MAC addressing is a LAYER below IP addressing, you have probably heard folks talk network in LAYERS, interesting stuff for folks who wish to learn further, another complication for home users who wants to do this and that. WOL lives in the MAC layer.
 

Frejoh466

Reputable
Jul 5, 2015
11
0
4,510
So I solved the problem, I have an ASUS router that has an SSH feature that supports wol. So I acquired HandySSH on my android and created a shortcut that sends the command, "ether - wake -b -i br0 [ mac ]"

So thank ASUS to provide some type of functionality, and of course Asuswrt - Merlin to make it better.

I'm sure getting an static arp would work, but I read that port scanners can trigger the wol command, so rather not do that, not a big problem. But still.