Wake On Lan over Internet

alpacino2368

Honorable
Jul 11, 2013
276
0
10,860
Hi Tom's forum,

I need some help setting up my network so I can wake up a pc remotely. Currently my setup will only wake up over the local network and for some reason I can not figure out why.

Here is what I have done thus far:
-Plugged PC in via ethernet
-Set up Wake on Lan apk on android phone (with all appropriate IP and Mac address)
-Enabled port forwarding on router (UDP: 7,9) to my desktop IP address
-Opened firewall ports (UDP 7,9) for pc in question
-Setup static IP for pc in question

I also used a program to verify the router opened the ports.

As I said prior, this setup will wake the PC on the local (via the apk) but not over the internet and I can not figure out why. Any input would be very helpful. Thank you!

PS: the router is a Dlink DIR822, ISP is TekSavvy (Canada), modem is a SmartRG SR505N running in bridge mode

 
Solution

Oh then have you tried the actual static IP? Some tutorial on the web say to use the broadcast, which makes sense but when I used that it didn't work but it did worked for me using the actual static IP. I also use the Depicus WOW site.

Some folks talk about the static ARP, but that sounds like necessary if your router's ARP table times out. My box wakes up by itself several times/day to run tasks, hence my router's ARP table refreshes often enough that it hasn't been a problem for me. Anywhoo, even if you have an static ARP issue, it should still work until it times out.
U seem to have done everything correctly.

U are not doing double-NATing on your LAN are you?

Instead of PF to static IP, use the broadcast IP see what happens. So instead of 192.168.0.15, do 192.168.0.255.

On your Android app, use dashes instead of customary colon on MAC. Are yo also the same App on LAN?
 
Your problem is there is not such thing as wake on WAN..or internet. Now some routers like ASUS have a special option that you can access remotely that will cause the router to issue a WoL packet.

A WoL packet is a packet sent to the broadcast mac address that contains the mac of the machine to wake in a special pattern. There is not IP address, there is no port number so all that does not matter. The concept of IP addresses and ports is a operating system concept which it not active. The ethernet chips are pretty basic and do not have the ability to run a full IP stack.

I have no clue why the apps that wake things even put IP in when it is not really a valid thing to be doing. Some ethernet chips are very picky and will not accept packets that do not meet the standard, mostly to avoid being woke when not intended. Others accept any kind of packet that happens to have the correct string of data in it no matter where it finds it.

SO.
You likely either need a router that will do the WoL for you or you have to build your own wake on WAN. What you need to do ( and likely you need third party firmware) is.

Put in a static ARP for some unused IP say 192.168.1.250 and map it to the mac FFFFFF:FFFFFF. Then port forward to this ip.

Used to be you could use the actual ip broadcast like 192.168.1.255 but this feature has been disabled for many years because of the ability to do denial of service attacks against all your machines at the same time. You would be partially opening this hole back up.

If you are going to have to get a different router to load firmware on I would look at the ASUS options first. I have not used it but many people say it works well. Almost all ASUS routers support third party firmware if nothing else works.
 

alpacino2368

Honorable
Jul 11, 2013
276
0
10,860


Since my modem router is in bridged mode it automatically disables the Nating feature.

I'm also already using the broadcast IP you mentioned.
 

Oh then have you tried the actual static IP? Some tutorial on the web say to use the broadcast, which makes sense but when I used that it didn't work but it did worked for me using the actual static IP. I also use the Depicus WOW site.

Some folks talk about the static ARP, but that sounds like necessary if your router's ARP table times out. My box wakes up by itself several times/day to run tasks, hence my router's ARP table refreshes often enough that it hasn't been a problem for me. Anywhoo, even if you have an static ARP issue, it should still work until it times out.
 
Solution

alpacino2368

Honorable
Jul 11, 2013
276
0
10,860


I ended up removing my static IP and set up a dynamic dns changer. Switched to the new IP on my android App and boom, wake from local and over internet. Thank you both for the help!