waayne
Posts: 4
Joined: Mon Jun 25, 2018 9:42 pm

Raspberry Pi wake up Windows PC via LAN cable

Wed May 08, 2019 7:58 am

Hey guys,

I want to be able to turn on my pc remotely.
As I don't have any possibility to connect my pc with my router via a LAN cable, I came up with the following idea:

1. Connect the Raspberry Pi with the Windows PC via LAN cable
2. Remotely access the Pi via SSH (or whatever) and send a magic packet through the LAN cable directly to the PC

My problem is, I don't really know how to send that packet to the PC. Maybe one of you guys could help me. Thanks in advance!

fruitoftheloom
Posts: 19484
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Raspberry Pi wake up Windows PC via LAN cable

Wed May 08, 2019 8:38 am

waayne wrote:
Wed May 08, 2019 7:58 am
Hey guys,

I want to be able to turn on my pc remotely.
As I don't have any possibility to connect my pc with my router via a LAN cable, I came up with the following idea:

1. Connect the Raspberry Pi with the Windows PC via LAN cable
2. Remotely access the Pi via SSH (or whatever) and send a magic packet through the LAN cable directly to the PC

My problem is, I don't really know how to send that packet to the PC. Maybe one of you guys could help me. Thanks in advance!

Ether Wake
https://linux.die.net/man/8/ether-wake

Wake on Lan
https://linux.die.net/man/1/wol
adieu

My other Computer is an Asus CS10 ChromeBit running Chrome Operating System.
HP Envy 4500 Wireless Printer supported by HPLIP software in Raspbian Stretch.

waayne
Posts: 4
Joined: Mon Jun 25, 2018 9:42 pm

Re: Raspberry Pi wake up Windows PC via LAN cable

Wed May 08, 2019 9:49 am

fruitoftheloom wrote:
waayne wrote:
Wed May 08, 2019 7:58 am
Hey guys,

I want to be able to turn on my pc remotely.
As I don't have any possibility to connect my pc with my router via a LAN cable, I came up with the following idea:

1. Connect the Raspberry Pi with the Windows PC via LAN cable
2. Remotely access the Pi via SSH (or whatever) and send a magic packet through the LAN cable directly to the PC

My problem is, I don't really know how to send that packet to the PC. Maybe one of you guys could help me. Thanks in advance!

Ether Wake
https://linux.die.net/man/8/ether-wake

Wake on Lan
https://linux.die.net/man/1/wol
This addresses your broadcast IP and the magic packet will be sent through the router or am I wrong?

fruitoftheloom
Posts: 19484
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Raspberry Pi wake up Windows PC via LAN cable

Wed May 08, 2019 11:03 am

waayne wrote:
Wed May 08, 2019 9:49 am
fruitoftheloom wrote:
waayne wrote:
Wed May 08, 2019 7:58 am
Hey guys,

I want to be able to turn on my pc remotely.
As I don't have any possibility to connect my pc with my router via a LAN cable, I came up with the following idea:

1. Connect the Raspberry Pi with the Windows PC via LAN cable
2. Remotely access the Pi via SSH (or whatever) and send a magic packet through the LAN cable directly to the PC

My problem is, I don't really know how to send that packet to the PC. Maybe one of you guys could help me. Thanks in advance!

Ether Wake
https://linux.die.net/man/8/ether-wake

Wake on Lan
https://linux.die.net/man/1/wol
This addresses your broadcast IP and the magic packet will be sent through the router or am I wrong?

You stated you had the RPi and PC connected via Ethernet Cable ??
adieu

My other Computer is an Asus CS10 ChromeBit running Chrome Operating System.
HP Envy 4500 Wireless Printer supported by HPLIP software in Raspbian Stretch.

waayne
Posts: 4
Joined: Mon Jun 25, 2018 9:42 pm

Re: Raspberry Pi wake up Windows PC via LAN cable

Wed May 08, 2019 6:26 pm

fruitoftheloom wrote:
waayne wrote:
Wed May 08, 2019 9:49 am
fruitoftheloom wrote:


Ether Wake
https://linux.die.net/man/8/ether-wake

Wake on Lan
https://linux.die.net/man/1/wol
This addresses your broadcast IP and the magic packet will be sent through the router or am I wrong?

You stated you had the RPi and PC connected via Ethernet Cable ??
1. Connect the Raspberry Pi with the Windows PC via LAN cable

No, I stated that I connected the RPi with my PC with a Ethernet/LAN cable.
As I don't have any possibility to connect my pc with my router via a LAN cable

I can't connect my pc with my router via LAN cable.

Return to “Networking and servers”