Tekforums

Chat => Entertainment & Technology => Topic started by: Eagle on July 30, 2011, 06:44:01 AM

Title: Wake On Lan problem
Post by: Eagle on July 30, 2011, 06:44:01 AM
I'm trying to run SplashDesktop (http://www.splashtop.com/) to access and control my PC remotely on my iPhone.

The app works fine when on the local network but (apparently) won't work so easily when I'm on the road.

My main issue however is that, try as I might, I can't get my head around Wake On Lan.  I'm supposed to be forwarding ports to UDP 9 (or something :dunno: ) but every damn combination I try just fails.  I've used the built-in WOL feature which doesn't work at all.  I've even tried it remotely via web but the so-called 'magic packet' never gets through (or it isn't recognised).

I'm using the following kit if it helps:

Router: Belkin F5D8636-4 v1
Motherboard: Asus P5K-E WiFi

Some links if they help you... they just made my eyes bleed and brain explodared.

http://support-remote.splashtop.com/entries/510336-connect-from-outside-using-linksys-wireless-g-broadband-router-as-an-example

http://en-us-support.belkin.com/app/answers/detail/a_id/60/~/configuring-port-forwarding

I've had to revert to a wired connection, too, as I understand WOL won't won't work if Mr PC is connected via WiFi.

Just what am I supposed to be doing - and is there an easier WOL solution for iPhone?

Hope someone can end my misery!  :worried:
Title: Re: Wake On Lan problem
Post by: Russell on July 30, 2011, 09:33:21 AM
I looked into trying to get WOL working over the internet before but after a bit digging around I think I most sites seem to say that consumer level routers blocked the magic packet and there wasn't much you can do about it as it.

The only way I could think about getting around it was to find a router that had a built in VPN system that I could then install a client on my laptop and (now I've got one) an android phone and then use that to sent the packet, but I never acutally got round to finding anything so if anyone else comes up with a solution I'd be grateful.
Title: Re: Wake On Lan problem
Post by: Eagle on July 30, 2011, 12:55:49 PM
There are literally tens of thousands of people who report they can get it to work so it must be possible.

I'm now even using a dedicated WOL app for iPhone and that can't even do it.  Confusingly, it scans and detects the router and the network card and reports both their IP and MAC addresses.  The details reported (whuch surely must be accurate) are contrary (i.e. MAC/IP switched around) to everything else I've been told to input (from ipconfig).  I've tried multiple combinations of IP/MAC/subnet mask but still nothing...

:disappointed:
Title: Re: Wake On Lan problem
Post by: bear on July 30, 2011, 13:02:17 PM
Using an open firmware can make some routers more usefull (Like linksys 54 ). Tomato is one (also with liks to others)
http://tomatousb.org/links

some compatible routers

http://tomatousb.org/doc:build-types
Title: Re: Wake On Lan problem
Post by: Eagle on July 30, 2011, 13:55:18 PM
Thanks Bear - I 'bear' that in mind.  ;)

Ok, I've got the App to finally get the PC to Wake on Lan but ONLY when connected via my router's WiFi connection in the house (I'm assuming this means on the local network).

The MAC/IP settings were indeed 'swapped' from what was suggested/listed in ipconfig but I hashed around trying different things with the IP/MAC and Subnet Mask and it finally worked.

It's still not working over the phone though (a non-3G connection) OR with my 'Three MiFi' modem so I guess this isn't going to wake remotely... which is the whole point.  :disappointed:

The annoying thing is; I can control and access the PC with MiFi or Router WiFi... just not wake it.  :panic:
Title: Re: Wake On Lan problem
Post by: XEntity on July 30, 2011, 14:35:51 PM
I'm not sure it's possible remotely? Doesn't WOL use MAC address? The internet is based around IP routing and not MAC routing?

There are only two ways that I think it would work (more than happy to be proved wrong):

- VPN Connection, VPN in to the network from the iPhone then run the WOL (However you will either need a VPN server router or software running on a computer (I expect the latter defeats the point?)

- Get a router that supports WOL via remote access... I use DD-WRT which will quite happily install on a large number of routers (like tomato above), this can then mean that I can setup a DynDns, which is maintained on the router, giving me a real web address and not a changing IP, then I can log in to the router via that address and in one of the screens there is an option to wake computers on the network...

Google your router name and DD-WRT to see if it is compatible..

I've not tried it over the net but easily setup WOL on my local network via the iPhone... I think half your problem here is that it is WOLan not WOWan
Title: Re: Wake On Lan problem
Post by: Eagle on July 30, 2011, 14:52:11 PM
It's clearly possible as people say they can do it all over the net.  I just don't get what I'm doing wrong (or missing).  It's not worth getting a new router for but I just thought as mankind can send people into space then we could at least switch a f*cking computer on remotely...

No worries.  :)
Title: Re: Wake On Lan problem
Post by: XEntity on July 30, 2011, 15:25:31 PM
LOL I've just had a bit more of a read... and all looks very simple..

Can you post a screen shot of your router port forwarding settings?

And also which iPhone WOL software are you using?

Also you are aware you need to use your internet IP not your local PC IP (I expect you do, but thought I'd check)
Title: Re: Wake On Lan problem
Post by: XEntity on July 30, 2011, 16:17:38 PM
Just to add..

this is the iPhone app I use and they give the settings to use for internet based WOL, I've tried the easy option:

- Set port forwarding of both UDP and TCP for port 9 and set the IP to forward to as 192.168.1.255 (the first 3 segments will need to match your network, the last is just the broadcast address, so will remain the same) - However this didn't work for me.. But might be because I have 2 routers between me and the internet, although I'm not sure as my second router is setup as a DMZ..

The second option is to change your subnet, I'm not going to try this as I have various different IP ranges used for different equipment types, and I don't want to dick around with it an try :)
Title: Re: Wake On Lan problem
Post by: Eagle on July 30, 2011, 18:57:00 PM
Quote from: XEntity on July 30, 2011, 15:25:31 PM
LOL I've just had a bit more of a read... and all looks very simple..
:o  ;D

QuoteSet port forwarding of both UDP and TCP for port 9 and set the IP to forward to as 192.168.1.255
That exact number?  It's not the IP that the PC access app uses (which works).

QuoteCan you post a screen shot of your router port forwarding settings?

And also which iPhone WOL software are you using?

Also you are aware you need to use your internet IP not your local PC IP (I expect you do, but thought I'd check)

I can post a screenie but what should I 'hide' (blank out)?

As mentioned, I can wake from Sleep on LAN but not do anything on WAN so I must have the right settings?...

The iPhone app is Depicus WOL.

:)
Title: Re: Wake On Lan problem
Post by: XEntity on July 30, 2011, 19:02:55 PM
If you are posting a screenshot, I imagine there is nothing that is personal on there, so shouldn't need to blank anything..

Can you post what settings you have put in the app as well...

The reason I ask for the latter is that the settings will be different for WAN and LAN, namely the IP you put in..

The IP you need to use in the app is the one at the top of this page:

http://www.whatismyip.com/ (http://www.whatismyip.com/)
Title: Re: Wake On Lan problem
Post by: Eagle on July 31, 2011, 08:22:01 AM
Yeah, I'm aware the WAN IP (public/external) is different to the the router's - and it changes daily.  Should I be using that?
Title: Re: Wake On Lan problem
Post by: XEntity on July 31, 2011, 11:51:44 AM
Quote from: Eagle on July 31, 2011, 08:22:01 AM
Yeah, I'm aware the WAN IP (public/external) is different to the the router's - and it changes daily.  Should I be using that?

Yep, so the iPhone App needs to be configured with the WAN IP when not connected to the LAN (setup 2 WOL profiles) and then a port number if it gives you the opportunity.. if not you'll need to find out which port it uses, or use a different app (Mocha WOL as mentioned above is good)

If using mWOL these are the settings:
IP Address : [WAN IP]
MAC Address: Same MAC you have that is working on the LAN
WOL Port: 9 (Default)
Name: whatever
Ping: Off (It wont work over WAN)
WOL on LAN: Off

Guide here for mWOL: http://www.mochasoft.dk/wizard_wol.htm (http://www.mochasoft.dk/wizard_wol.htm)

And the router port forwarding table needs to be configured with the same port as above for UDP and TCP, forwarded to XXX.XXX.XXX.255 (This is a broadcast IP, WOL doesn't use the IP of the computer at all, unless it checks that it has powered on after, is the device wont have an IP until it has booted), I think the below are the headings you will see, with the values you need to populate..

Enable - Y
Description - WOL
Inbound Port - 9
Type - TCP & UDP
Private IP Address - 255 (Does your router allow you to input this? some wont- if not then it's a little more complicated, but only a little)
Private Port - 9

However, like I said it didn't work from my mobile, it might be something the operator filters out, likewise the same could apply to your broadband provider? Although I'm on one of Oranges more direct APNs, so should have a better change but no luck here?
Title: Re: Wake On Lan problem
Post by: XEntity on July 31, 2011, 12:07:07 PM
Just to add... I found out my problem, DD-WRT doesn't allow forwarding over the broadcast address in the default setup, you need to add some extra code to the start-up command.. Chances are your router doesn't like it either..
Title: Re: Wake On Lan problem
Post by: Eagle on July 31, 2011, 17:21:39 PM
Been a fiddling with mocha but just cant seem to get it to work (on WAN (Internet)).  I'll arrange a static IP, see if that helps.

I'm unable to put 255 on the end, so can we get complicated? ;)
Title: Re: Wake On Lan problem
Post by: Eagle on July 31, 2011, 17:32:05 PM
...also, do you know if it'll be possible to create a 'catch-all' wake so that it'll wake whether the phone is connected to WAN or LAN?
Title: Re: Wake On Lan problem
Post by: XEntity on August 01, 2011, 18:32:58 PM
Quote from: Eagle on July 31, 2011, 17:21:39 PM
Been a fiddling with mocha but just cant seem to get it to work (on WAN (Internet)).  I'll arrange a static IP, see if that helps.

I'm unable to put 255 on the end, so can we get complicated? ;)

Shamelessly copied from the above link.. but basically you need to adjust your subnet, and this will be assuming that all of your devices use DHCP to get their IP address, and that any other port forwarding rules you currently have in place may be impacted and need changing..

If you need more details about subnets, there's a guide in the guides section ;)

Your current subnet will most likely be 255.255.255.0

So setup your port forwarding and set the target IP to XXX.XXX.X.127 (first blocks of Xs are automatic in Belkin's case I think)

Save the settings

Then go in to your DHCP options and change your subnet to assign from 255.255.255.0 to 255.255.255.128 this will limit your LAN IP range to a max of 126 devices (127 is used for broadcast)

Save your settings, and hopefully it wont work out you have put the port forward on a broadcast address..

Reboot your router and PC you want to power on, any other devices are likely to need a power cycle as well to pick up the new dhcp settings, or just pull and re-connect the network cable..

Let me know how you get on..

Stolen text:

"If the router does not allow NAT to be forwarded on a broadcast address (it is a bug in some routers), a work around is to define the subnet for your LAN as 255.255.255.128 , and forward the UDP port 9 to IP 192.168.2.127, which is the broadcast address for your new subnet (if your network is using range 192.168.2.xxx).
On some routers, first define subnet as 255.255.255.0, and NAT UDP port 9 to 192.168.2.127 (if your network is using range 192.168.2.xxx), save the configuration, and hereafter change the subnet to 255.255.255.128."
Title: Re: Wake On Lan problem
Post by: XEntity on August 01, 2011, 18:34:41 PM
Quote from: Eagle on July 31, 2011, 17:32:05 PM
...also, do you know if it'll be possible to create a 'catch-all' wake so that it'll wake whether the phone is connected to WAN or LAN?

No I don't think so, not without having a router that you could configure the external range, I think we are talking CISCO or DD-WRT territory here :)
Title: Re: Wake On Lan problem
Post by: Eagle on August 01, 2011, 20:31:42 PM
Yeesh!  I think I'm going to have to set aside a quiet day to get my head around all of this.  It kinda makes sense...

Cheers. :)
Title: Re: Wake On Lan problem
Post by: Eagle on August 01, 2011, 20:41:20 PM
Quoteand this will be assuming that all of your devices use DHCP to get their IP address
How can I tell?
Title: Re: Wake On Lan problem
Post by: XEntity on August 01, 2011, 21:51:19 PM
If you have to ask the question then I expect they will all be DHCP, as you would have had to have configured otherwise..

It should only be 5 mins work, change the port forwarding, then change the DHCP setting, reboot..
Title: Re: Wake On Lan problem
Post by: Eagle on August 01, 2011, 22:30:54 PM
Ok, cheers - will it affect the ability to wake on LAN?

I'm assuming I should record/export settings incase it all goes horribly wrong?  :panic:
Title: Re: Wake On Lan problem
Post by: XEntity on August 01, 2011, 22:45:36 PM
No shouldn't make any difference... Might be a good idea to export settings... If you are on DSL make sure you have your login for the internet.. worst comes to the worst you can always do a hard reset, although you shouldn't have any problems making the above changes..

Oh and also if you can set your DHCP range make sure it is anywhere between 2 and 254.
Title: Re: Wake On Lan problem
Post by: StPeteAPB on February 18, 2014, 12:36:46 PM
Not sure if anyone with the original problem is still around ... and if you solved it or not ... but I am having the same exact issue.

I have an ActionTec router from Verizon and I know my external IP address.
I have configured my MWOL iPhone app to wake my computer from both inside my network and from outside (on 3G).
Both methods work just fine, 99% of the time.

What I am finding is that if I shut my PC down completely (say I go out of town for a few days), then the MWOL via outside connection (3G) will not wake my computer. But, if I switch over my iPhone onto my home network and use the configuration in MWOL, it wakes the PC up, just fine.

I have a reserved IP address set for this PC -and- I have an outside port (1966) forwarding to that specific PC's port #9.

If I power down the PC completely right now, take my iPhone off my home network, get on 3G and use the outside-in MWOL configuration, my PC wakes up just fine.  But, if I shut my PC down and let it stay off overnight (just tried this last night), it does NOT wake my PC.  I then switched back to having my iPhone on my home network and used the inside-my-network configuration in MWOL and it woke my PC.

So, it has nothing to do with the Windows configuration of turning power off to the NIC to save power, because - shut down - Windows is not up and running to control the power save on the NIC.

Very, very odd!
Title: Re: Wake On Lan problem
Post by: XEntity on February 18, 2014, 23:52:38 PM
I'm assuming you are on ADSL? If there is no activity on the network then it'll disconnect the connection meaning that you are unable to make a connection externally

You could either check the logs to see when the connection is down, you might need to enable logs. Or alternatively next time try WOL while on the mobile network, if it doesn't work then go on to wifi and browse to a web page to force the modem to connect then go back on to mobile network and try WOL again. Let us know how you get on?
Title: Re: Wake On Lan problem
Post by: soopahfly on February 19, 2014, 17:27:26 PM
I still reckon it could be power management related.  Are you sure you're fully shut down and not in hybrid sleep?  I was under the impression that WOL wouldn't work on a shut down computer, only a sleeping one.
Title: Re: Wake On Lan problem
Post by: XEntity on February 19, 2014, 20:13:18 PM
WOL should work fine on a shutdown computer, although I've seen problems on computers that have been disconnected from the mains, but anyway he's saying its fine on the local network just not over the tinter webs