chrisd10
Posts: 5
Joined: Wed Nov 12, 2014 11:57 am
Location: Germany

Use my wifi connected Pi to wake my PC via LAN?

Wed Jul 15, 2015 8:53 am

Hi!

I recently moved house and i dont have the permission to drill holes through the walls to connect my PC via LAN. So im wondering if i can use my Pi that is connected to the Router via wifi to wake my PC that is connected to the pi via LAN. Is this possible?
Whenever i connect something to the Ethernet Port the pi isnt reachable via Wifi to me.

Thanks!

User avatar
rpdom
Posts: 17173
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Use my wifi connected Pi to wake my PC via LAN?

Wed Jul 15, 2015 9:16 am

Yes, you can.

I just woke a PC using wakeonlan on a Pi that is connected via wireless (it's at the other end of my garden). The router in this case is another Pi running hostapd.

User avatar
joan
Posts: 14935
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: Use my wifi connected Pi to wake my PC via LAN?

Wed Jul 15, 2015 9:21 am

As long as your PC's motherboard supports Wake on LAN.

Find the MAC of your PC Ethernet.

Install the wakeonlan package on the PI.

sudo apt-get install wakeonlan

Issue the command

wakeonlan 00:24:1D:33:91:59

Where 00:24:1D:33:91:59 is your PC's ethernet MAC.

chrisd10
Posts: 5
Joined: Wed Nov 12, 2014 11:57 am
Location: Germany

Re: Use my wifi connected Pi to wake my PC via LAN?

Wed Jul 15, 2015 10:03 am

joan wrote:
Issue the command

wakeonlan 00:24:1D:33:91:59

Where 00:24:1D:33:91:59 is your PC's ethernet MAC.
It does yes. But do i need to setup anything? IP tables on the Pi or PC to static?
PC and Pi are on Wifi and connected between eachother via lan. So theres no LAN to the Router.

User avatar
joan
Posts: 14935
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: Use my wifi connected Pi to wake my PC via LAN?

Wed Jul 15, 2015 10:25 am

"to wake my PC that is connected to the pi via LAN" implies there is a route between the Pi and the PC.

chrisd10
Posts: 5
Joined: Wed Nov 12, 2014 11:57 am
Location: Germany

Re: Use my wifi connected Pi to wake my PC via LAN?

Wed Jul 15, 2015 2:57 pm

Ok, ill try it tonight. Thank you!

Return to “Advanced users”