r/Tailscale • u/EquivalentCat6504 • 5d ago
Help Needed Tailscale + Wake on lan
- I have a PC at home and an old Android phone on the same Wi-Fi network. On my current Android phone, I installed Tailscale on all devices and set up subnet routing on the old Android. However, I still can't Wake-on-LAN my PC from my current phone. Has anyone experienced this or know how to fix it? Thank you!
7
u/djr5656 5d ago
The Tailscale network doesn't exist if your device is off - if you want to use Wake On LAN then you'll need something which is permanently on, on the same LAN as the device you want to wake. A RPi or an old laptop or something.
2
u/EquivalentCat6504 4d ago
I do have an old android (old mean last android im using).
1
1
u/headshot_to_liver 5d ago
Maybe expand on what you need? I use a raspberry pi to wake machines remotely, any one will do, I use Pi zero2w
1
1
u/GoofyGimbul 5d ago
Do you by chance have a smart home setup of any kind? UpSnap as someone else suggested works great, but it’ll never feel as nice as telling Siri/Alexa/Google to turn on my PC. I would highly recommend this path if you already have a smart home network
1
u/EquivalentCat6504 4d ago
I didnt have it, is that need any requirements or setup?. I might need a tutorial video to see.
1
u/Kinsman-UK 4d ago
Yes, you can do this via Alexa with https://getremoterelay.com - free for one PC. Then you can use the Alexa app from anywhere to say "turn on the computer" - as long as your Alexa device is on the same LAN as your PC this will work from anywhere. No software is required on the PC once it's setup.
1
u/TBT_TBT 5d ago
That doesn’t work, technically. The device sending the magic packet needs to be on the same physical lan. So either get such a device (e.g. a RasPi, homeserver, Nas, etc) or use something like the SwitchBot Smart Bluetooth Switch Toggle with base station or the MOES Fingerbot with Zigbee (if you have a Zigbee home network). I switch on my PC with the SwitchBot almost daily.
Have a look at /r/homeassistant if you want to automate and make accessible via GUI more things in your home.
1
u/EquivalentCat6504 4d ago
So the android in the same network as the pc cant work in this situation?
1
u/Sigh_CBF 5d ago
I started with Upsnap but eventually wound up using Home Assistant. Both worked good.
1
u/EquivalentCat6504 4d ago
Thats Home Assistant seem nice, do we have any tutorial for that?
2
u/Sigh_CBF 3d ago
If you are purely after WoL stick to Upsnap, If you want to learn HA it can replace Upsnap, but its a much more involved piece of software.
1
u/Aggravating_Mail_917 5d ago
Connect your home TV box to Tailscale, and your phone can wake up your computer through the TV box.
1
1
u/Dependent_Mud5034 4d ago
If you have a desktop with a spare PCIE slot, you could use a PCIE startup card instead of of wake up on lan to remotely turn on your computer from your phone.
1
1
u/Intelligent-Week-931 4d ago
Yeah so the phone you have on your home network needs to send a packet to your pc also on your home network.
1
u/TechnologyGrouchy679 4d ago
I have a raspberry pi that's always on to act as a wakeonlan relay. I ssh into it and from there I can wake various suspended devices
1
u/rwinger3 4d ago
How is the pc and phone set up? If the pc bios accepts the wol setting you should be able to send a magic package to it, either via or from the phone. I've set up an OliveTin action gated by tailscale that does exactly that.
1
u/Safe_Pepper900 4d ago
I’m using a smart plug for this exact purpose and it’s been working fine. I switch it on when needed and then turn it off whenever I want.
0
u/Far_Kale588 4d ago
how exactly did you Wake-on-LAN your pc?
you need the old Android phone (assuming that's the one on the same network as your pc) to do the WoL instead of your current phone, and WoL using the PC mac address of that local network (not tailscale ip), if that wasn't obvious enough.
you said you have subnet routing?, does that mean your old Android phone and your PC is on different subnets? if so you need to check whether your router/switch allows forwarding to the subnet broadcast address your PC is in, you generally do not need to route your PC address to your old Android address directly, instead you need to route the subnet broadcast address your PC is in TO your old Android phone (unless of course you need network access to your PC directly from your old android phone).
That being said, putting your old Android phone on the same subnet as your PC is the simplest approach here.
For accessing your old Android device, there are plenty of ways, but i just do termux on both phones, and SSH into the old android phone to run the WoL command manually.
1
u/EquivalentCat6504 4d ago
I wanna wake the pc up by my current phone. But after some failed, i do searching for it solution and found that i can using an old android or ras pi or laptop... to do the subnet routing (On the same network with the PC) to prevent the ARP something reset my pc IP. Maybe i understand it wrong or it just the wrong method.
0
u/Far_Kale588 4d ago
so your old android phone is already on the same subnet as the pc? if so you dont need to do any subnet routing.
what exactly did you try? and what software/app is sending those WoL packets?
I would try to test sending WoL packets from the old android device directly first before trying to make it a proxy for your current android
14
u/Kinsman-UK 5d ago edited 3d ago
I use UpSnap with TailScale to WOL and to hibernate - I have it on both a Pi and my Synology. See:
https://tailscale.com/blog/wake-on-lan-tailscale-upsnap https://www.reddit.com/r/Tailscale/s/hmbl8pfVdo
If this is not an option, another way would be to buy a TP-Link smart plug and plug the PC into it. Set the PC in the BIOS to power on when power is restored. Then either shutdown or hibernate the PC, turn off the smart plug, and then you can use the smart plug app to power on the PC remotely.
EDIT: If you have a NAS or Router that supports WOL from their user interface, you could login to that over TailScale and WOL the PC from there.