Kodi Community Forum

Full Version: Wake on Lan
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello there,

My htpc is using OpenElec Frodo RC1.

I want to wake up my htpc from another windows machine, is that possible and what must i do.

I want to watch some movies on my laptop when i am not at home. The htpc is not always on, so that's the reason i want to use WOL.

Hope someone can help me with it.

I can acces the htpc on the wan adress when the machine is on. On my router the machine has a static ip.
On a local network,

1. enable WOL on the bios
2. note the IP of your htpc (typically 192.168.0.X) and the MAC adresss of the adapters (PP AA:BB:CCBig GrinD:EE:FF)
3. get a software (wol for linux) and type this: wol -i 192.168.0.X -p PP AA:BB:CCBig GrinD:EE:FF . You can find any other software (there are plenty for iOS, windows, android...)

To wake up from the internet
1. enable WOL port forwarding from your internet box (some have, some don't need)
2. get your internet address ip.
3. make a NAT from your internet ip to local machine (192.168.0.X) on port 9 UDP.
4. you can wake up from any device or website : http://www.sendmyip.com/wake_on_lan.php

yo
Can you explain how to do step 3? I don't know any linux commands or how to install software on openelec.
From your first post, it appears you want to wake up your OpenELEC HTPC from a remote Windows system. As such, you'd want a Windows WOL tool to send the magic packet to wakeup your HTPC. Plenty of them around. Just go to a site such as download.com or use Google to find others.
Does open elec have a tool like "ethtool"?
Yes i want to wake up my openelec machine from a windows 8 latop. I've tested it with some internet link (wake up from internet) but no resolve.

I've not installed ethtool, what does it do?
Wtih ethtool you're able to check tto what your network card is set to and change it, if necessary

You can check if it is installed already if you hit

Code:
ethtool --help

If you don't get an error, it is installed

If it is installed you can hit:

Code:
ifconfig

to see which network do you need to select:

mine looks like this:

Code:
david@david-xbmcbuntu:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:01:2e:2f:fd:05  
          inet addr:192.168.1.165  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::201:2eff:fe2f:fd05/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11066 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7869 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:12453748 (12.4 MB)  TX bytes:1057693 (1.0 MB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:12 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:720 (720.0 B)  TX bytes:720 (720.0 B)

wlan0     Link encap:Ethernet  HWaddr 74:f0:6d:2b:00:70  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

For me it is "eth0" which wakes my system

Now, and only if ethtool is installed, you can enter:

Code:
sudo ethtool eth0

Maybe the "eth0" will differ to your system.

The output has to look like this:

Code:
david@david-xbmcbuntu:~$ sudo ethtool eth0
[sudo] password for david:
Settings for eth0:
        Supported ports: [ MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Supported pause frame use: No
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Advertised pause frame use: No
        Advertised auto-negotiation: Yes
        Speed: 100Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 3
        Transceiver: external
        Auto-negotiation: on
        Supports Wake-on: g
        Wake-on: g
        Link detected: yes

The..."wake on: g" means, that my card "listens" to the "magic-paket" which has to be sent to wake up the system.

If "wake-on" is set to "d" it means, that it is deactivated. You can activate this with:

Code:
sudo ethtool -s eth0 wol g

Don't know if "sudo" is needed, but it won't hurt Wink

Cheers

P.s.: This works for me under XBMCbuntu very well and I don't know if it will work in OpenElec. So appologise if it will not work.
The key question here is whether the HTPC is on an Ethernet (wired) connection or WiFi. If it's WiFi, then WOL won't work unless the WiFi card supports WoWLAN (Wake on Wireless LAN), which is uncommon.
I've got cable connection. I will test above settings this weekend.
I googled a bit and found, that "ethtool" should be installed already or you are ale to install it as an addon like "nano"

Maybe this helps:

https://github.com/OpenELEC/OpenELEC.tv/issues/669

It's nearly the same as I said.

Cheers and good luck Wink
I've tested al above, but still no result. In the bios WOL is activated and also my network card is WOL active.
In my internet router / modem port 7-9 are open for my htpc. Must i do more?
Does waking it from a computer on the local network work?
New test (local) and it works for about 5 times, i used the wrong ip before.
But no the htpc is not waking up any more. Settings are still the same.
Typically, I wake my NAS using XBMC (on startup) or a Windows command-line utility called MC-WOL.
I always wake my XBMC using MC-WOL.

Everything was working fine up until now. MC-WOL has stopped working for both XBMC and NAS, but interestingly, XBMC still wakes NAS - which means that the system I want to wake is listening.
Any ideas why MC-WOL would stop working? I even shut down the firewall to make sure that the magic packet is not blocked, but nothing...

I suspect it's one of the Ubuntu updates I installed lately, but I have no clue which, so I am looking for clues, fixes or workarounds.
Thanks!