INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: JRiver WOL from WAN  (Read 7369 times)

designmule

  • World Citizen
  • ***
  • Posts: 107
JRiver WOL from WAN
« on: May 13, 2017, 02:02:14 pm »

I can't seem to get WOL to work from the WAN using JRemote on my iPhone.

So WOL works perfectly on my LAN (from phones, computers, etc.). JRemote connects via access key and I have the user name and password entered. I have port 9 UDP forwarded to my library server. When the server is running, a Wireshark trace shows the machine receiving the WOL packet sent from the WAN but when I put the machine to sleep I can only wake it if I am on my LAN. FWIW I am able to play music on my phone via JRemote while on the WAN (both cellular data and WIFI at work).

Does anyone have any additional suggestions? I'm stumped.

Thanks for your help.
Matt
Logged

designmule

  • World Citizen
  • ***
  • Posts: 107
Re: JRiver WOL from WAN
« Reply #1 on: May 13, 2017, 02:55:56 pm »

It turns out it works intermittently. I've successfully woken the library server from the WAN (cellular) using JRemote a couple of times but not consistently. I also setup dynamic DNS so that I could try and wake the machine from the the WAN using a stand alone WOL app. It also works intermittently.

So it's pretty clear this isn't a JRiver issue but if any of you out there have had similar experiences I'd still like to hear your suggestions.

Thanks
Matt
Logged

Krazykanuck

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 267
Re: JRiver WOL from WAN
« Reply #2 on: May 13, 2017, 11:20:17 pm »

Not all routers support WOL.
I discovered this with when I recently replaced my router.
It worked LAN not WAN

Logged

thecrow

  • MC Beta Team
  • Galactic Citizen
  • *****
  • Posts: 457
Re: JRiver WOL from WAN
« Reply #3 on: May 14, 2017, 04:53:01 am »

Actually very few routers support Wake on WAN.
When a device is powered off, after a while its entry in the ARP table is lost. That is the record in your local router as to where to route a packet to a destination IP address is time limited and discarded after a short time.
So WOL works by sending a magic packet by broadcast on the local network to all devices and the one that matches the MAC address included in that broadcast responds. Unfortunately very few routers allow you to send a broadcast from outside the network.
It is possible to get round this issue by using a Subnet Directed Broadcast. i.e. send a Layer 3 message to a target router that then changes that into a Layer 2 broadcast on the local network, but very few routers support this. An exception being the open source router firmware DD-WRT.
Alternatively you can route the Magic Packet to a WOL proxy that is constantly powered up inside your local network that then rebroadcasts the command to the local network..
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72444
  • Where did I put my teeth?
Re: JRiver WOL from WAN
« Reply #4 on: May 14, 2017, 06:16:17 am »

I believe that WOL can send a single magic packet (not a broadcast) to a specific address.

Here's a topic on our wiki:
https://wiki.jriver.com/index.php/Wake_on_Lan
Logged

designmule

  • World Citizen
  • ***
  • Posts: 107
Re: JRiver WOL from WAN
« Reply #5 on: May 14, 2017, 08:34:37 am »

I've read about the ARP table thing, and you might be right. However, for my testing the library server has only been asleep for 30 seconds or so. I wouldn't think that's enough time for the library server to be deleted from the ARP table. Additionally, the library server is assigned a static IP and the router forwards port 9 to that IP.

I have another machine I can test on to try and tell if it is network or computer specific.

I appreciate the suggestions.
Logged

designmule

  • World Citizen
  • ***
  • Posts: 107
Re: JRiver WOL from WAN
« Reply #6 on: May 14, 2017, 08:55:30 am »

Ok, I tried it out on a second machine and it worked several times in a row. So it must be something with my library server.
Logged

designmule

  • World Citizen
  • ***
  • Posts: 107
Re: JRiver WOL from WAN
« Reply #7 on: May 14, 2017, 12:24:56 pm »

I think I've got it! I had to open port 9 on the Windows 7 firewall and it now seems to be waking regularly.

The ARP table might still be an issue once the machine has been asleep for an extended period of time. I'm hopeful the static ip will take care of that. I'll keep an eye on it and report back.

Thanks for the help.
Logged

rudyrednose

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 344
  • nothing more to say...
Re: JRiver WOL from WAN
« Reply #8 on: May 16, 2017, 02:27:01 pm »

Not sure but it may be better to use address reservation on the router than static IP on the server.
The router would then always know the relationship between your server MAC and IP adresses (assuming the router is your DHCP server).
Logged

designmule

  • World Citizen
  • ***
  • Posts: 107
Re: JRiver WOL from WAN
« Reply #9 on: May 17, 2017, 09:24:36 am »

Thanks for the suggestion. Static IP is assigned via the router.

I'm now finding that I can only wake the computer if it has been on recently. This is probably related to the ARP table or the router's inability to broadcast the UDP packet from the WAN. In my case, changing the router is not an option. It looks like I can setup a pi to receive the packet and transmit it to the correct machine but I'm not sure I'm interested in going down that route.
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72444
  • Where did I put my teeth?
Re: JRiver WOL from WAN
« Reply #10 on: May 17, 2017, 09:35:42 am »

Check the power settings for the network device.
Logged

designmule

  • World Citizen
  • ***
  • Posts: 107
Re: JRiver WOL from WAN
« Reply #11 on: May 17, 2017, 09:47:02 am »

"Check the power settings for the network device."

Do you mean the NIC on the library server? It's setup correctly for WOL. WOL over LAN works great and WOL over WAN works fine provided that the machine has not been sleeping for too long. Is there a NIC setting you suspect would be different for WOL over WAN vs. WOL over LAN?

I appreciate the help.
Matt
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2663
Re: JRiver WOL from WAN
« Reply #12 on: May 17, 2017, 11:12:36 am »

Thanks for the suggestion. Static IP is assigned via the router.

I'm now finding that I can only wake the computer if it has been on recently. This is probably related to the ARP table or the router's inability to broadcast the UDP packet from the WAN. In my case, changing the router is not an option. It looks like I can setup a pi to receive the packet and transmit it to the correct machine but I'm not sure I'm interested in going down that route.

Check your sleep states. Some can't WOL from S3 or deeper, which they will enter automatically after extended standby.
Logged

designmule

  • World Citizen
  • ***
  • Posts: 107
Re: JRiver WOL from WAN
« Reply #13 on: May 17, 2017, 11:22:40 am »

Thanks. It could be asleep for a month and I can wake it on the LAN (slight exaggeration). It's only when waking via Wide Area Network that it will not wake after a certain amount of time. I believe this is due to the MAC address being removed from the router's ARP table after time as the crow suggested.
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2663
Re: JRiver WOL from WAN
« Reply #14 on: May 17, 2017, 11:28:35 am »

Are you broadcasting to the broadcast address or a single IP at this point? I've always used OpenWRT so I'm not aware of OEM firmware limitations in this regard. It might be worthwhile to do some snooping on dslreports, etc., to see if there are any workarounds. If possible try a third-party firmware (obviously not an option if this is an ISP device, although you can buy a cheap router and use bridged mode on the ISP router).
Logged

designmule

  • World Citizen
  • ***
  • Posts: 107
Re: JRiver WOL from WAN
« Reply #15 on: May 17, 2017, 11:35:00 am »

My router doesn't forward to broadcast address from the WAN. I'm on Google Fiber and I've found other users coming to the same conclusion and unfortunately you can't substitute their router and maintain TV service.
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2663
Re: JRiver WOL from WAN
« Reply #16 on: May 17, 2017, 11:58:57 am »

Bummer. Sounds like there is a market for a cheap ESP8266 WOL device. You would just need to modify this code to forward the magic packet automatically.
Logged

designmule

  • World Citizen
  • ***
  • Posts: 107
Re: JRiver WOL from WAN
« Reply #17 on: May 17, 2017, 12:59:10 pm »

That looks pretty cool. I've looked at a few tutorials which describe how to get a pi to do it.
Logged

RoderickGI

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8186
Re: JRiver WOL from WAN
« Reply #18 on: May 17, 2017, 05:19:06 pm »

I'm on Google Fiber and I've found other users coming to the same conclusion and unfortunately you can't substitute their router and maintain TV service.

I'm in the same situation in Australia with the supplied Telstra Cable Modem/Router. However in my case, and maybe yours, I don't need to substitute the Telstra router with another one, I can just put it into bridge mode, which turns it into a plain modem. Then I can add a new router behind (downstream from) the Telstra modem, connecting via the WAN port on the router, and have full functionality of the new router, whatever I happen to chose to use, be it just a better router, or a DD-WRT or other flashed router.

I don't have that setup at the moment, because I don't need to, but many people in Australia do just that to get a better router. The Telstra service isn't affected. An ISP Router in bridged mode, operating just as a modem, will forward all packets, including WOL packets, to the new router untouched. The new router can then be made to do what you wish, including Wake On WAN.

Perhaps you could do the same with Google Fiber?
Logged
What specific version of MC you are running:MC27.0.27 @ Oct 27, 2020 and updating regularly Jim!                        MC Release Notes: https://wiki.jriver.com/index.php/Release_Notes
What OS(s) and Version you are running:     Windows 10 Pro 64bit Version 2004 (OS Build 19041.572).
The JRMark score of the PC with an issue:    JRMark (version 26.0.52 64 bit): 3419
Important relevant info about your environment:     
  Using the HTPC as a MC Server & a Workstation as a MC Client plus some DLNA clients.
  Running JRiver for Android, JRemote2, Gizmo, & MO 4Media on a Sony Xperia XZ Premium Android 9.
  Playing video out to a Sony 65" TV connected via HDMI, playing digital audio out via motherboard sound card, PCIe TV tuner

designmule

  • World Citizen
  • ***
  • Posts: 107
Re: JRiver WOL from WAN
« Reply #19 on: May 17, 2017, 05:22:39 pm »

nope, no bridge mode on google fiber either. thanks for the suggestion.
Logged

RoderickGI

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8186
Re: JRiver WOL from WAN
« Reply #20 on: May 17, 2017, 05:26:43 pm »

Bummer. That is pretty restrictive.

Are you sure though? Setting bridged mode isn't usually advertised by ISPs, but it can sometimes still be done. In some worst cases, via a serial port "hack" and a character interface rather than a setting in the GUI interface.
Logged
What specific version of MC you are running:MC27.0.27 @ Oct 27, 2020 and updating regularly Jim!                        MC Release Notes: https://wiki.jriver.com/index.php/Release_Notes
What OS(s) and Version you are running:     Windows 10 Pro 64bit Version 2004 (OS Build 19041.572).
The JRMark score of the PC with an issue:    JRMark (version 26.0.52 64 bit): 3419
Important relevant info about your environment:     
  Using the HTPC as a MC Server & a Workstation as a MC Client plus some DLNA clients.
  Running JRiver for Android, JRemote2, Gizmo, & MO 4Media on a Sony Xperia XZ Premium Android 9.
  Playing video out to a Sony 65" TV connected via HDMI, playing digital audio out via motherboard sound card, PCIe TV tuner

designmule

  • World Citizen
  • ***
  • Posts: 107
Re: JRiver WOL from WAN
« Reply #21 on: May 17, 2017, 05:33:15 pm »

It is a bummer but I'm positive there is no bridge mode. It's one of the most requested feature improvements on the google fiber forums.

It's kind of funny because when they rolled out google fiber they said that they wanted to see what people would do with a 1 gig network connection but then they require that you use their limited network box and won't allow internet access to machines running server OSs (or so I'm told).
Logged
Pages: [1]   Go Up