Start your server remotely reddit / selfhosted ---------------------------------------------------------------------- xTH13M0x · 2023-12-11 07:21 Hi, i have a little pc at home, which im using as a server. The server shouldnt run all the time, thats why im wondering, how i can start the server, if im not at home. Does anybody of you have a good idea. Unfortunately wake on lan is not possible. ---------------------------------------------------------------------- ElevenNotes · 2023-12-11 07:35 Wake-on-LAN or a simple smart plug like this [Sonoff Basic R3](https://itead.cc/product/sonoff-basicr3-wifi-diy-smart-switch/) ---------------------------------------------------------------------- Prestigious_Carry864 · 2023-12-11 07:50 Starting your server remotely with Hosting Home is as easy as a few clicks. Here's a simple guide: Login to Your Hosting Home Account: Visit Hosting Home's website and log in to your account. It's like unlocking the door to your digital space. Navigate to Server Settings: Find the server settings section—it's like the control center for your server. Click on it to access the options. Click "Start": Look for the "Start" button—it's like turning on the lights in your digital room. Click on it to remotely start your server. Wait for Confirmation: Hosting Home will confirm that your server is starting. It's like getting a message that everything is up and running. And that's it! With Hosting Home, starting your server remotely is a simple process, bringing convenience to your digital experience. ---------------------------------------------------------------------- WiseCookie69 · 2023-12-11 07:54 What does that sound like ChatGPT? ---------------------------------------------------------------------- Mr-introVert · 2023-12-11 08:00 If your PC is a consumer grade one, You'd need to look at out of band management options like Pi-KVM. But, if your hardware is enterprise grade, then some of them might come with OOB management options pre-built into it.(eg: Intel vpro) ---------------------------------------------------------------------- Vangoss05 · 2023-12-11 08:11 If its an intel system check if it has iPro functions (its discount IPMI) ---------------------------------------------------------------------- sebasdt · 2023-12-11 08:13 Because it is! ---------------------------------------------------------------------- sebasdt · 2023-12-11 08:14 Or a diy pi kvm would work too! ---------------------------------------------------------------------- JakeSully-Navi · 2023-12-11 08:20 Check if the pc has got Wake On Lan function in bios. If it does, you can then ping the home pc by unblocking the correct port trough firewall in your router and then from there pin to the public ip with the correct port. After that your home pc will automatically power on and boot up. ---------------------------------------------------------------------- debryx · 2023-12-11 08:29 The powerplug would work if BIOS can be configured to always boot on power (or whatever the manufacturer calls it). ---------------------------------------------------------------------- HalleysComet41 · 2023-12-11 08:35 call your kids or dog and tell them to push the on button ---------------------------------------------------------------------- ElevenNotes · 2023-12-11 08:36 I hope by 2023 almost all devices have that feature? I have it on 10-year-old devices, so fingers crossed. ---------------------------------------------------------------------- abiabi2884 · 2023-12-11 08:37 I did it with a Fritzbox Router and the App Box Togo. In the App you can send a WOL from the Fritzbox to the PC. ---------------------------------------------------------------------- Simon-RedditAccount · 2023-12-11 08:39 >Unfortunately wake on lan is not possible. Get an ESP32 or RPi. Wire server's power button to one of the I/O pins. Write a simple app that will be listening as HTTP(S) server and trigger the button when needed. Make sure to protect your setup from bots that constantly scan all IP ranges (have at least a password so a random GET request won't shut down your server; better use mTLS). ---------------------------------------------------------------------- teh-van-knorretje · 2023-12-11 08:51 Look up switchbot or fingerbot. These are smart devices that can press buttons for you. ---------------------------------------------------------------------- Nokushi · 2023-12-11 08:52 surprisingly, I don't have it on my 2 years old Minisforum NUC, and I've been missing it *a lot* ---------------------------------------------------------------------- geek_at · 2023-12-11 08:54 or a shelly1 connected to the power button pins of the pc ---------------------------------------------------------------------- ElevenNotes · 2023-12-11 08:54 So this does not exist on your device? >Advance > Power > Secondary Power Settings > After Power Failure ---------------------------------------------------------------------- FungZhi · 2023-12-11 08:54 If your motherboard supports power on after power loss, I strongly recommend you to get a smart plug where you can use an app to monitor power usage and turn on/off the pc I've been using it for quite a while now, and it works perfectly because I dont have static ip and port forwading fucntion is janky in my router ---------------------------------------------------------------------- ElevenNotes · 2023-12-11 08:55 That’s also an option, thanks for the tip. ---------------------------------------------------------------------- SimonLeBonTon · 2023-12-11 08:56 [Switchbot Bot!](https://www.switch- bot.com/cdn/shop/products/switchbot-bot-673159.jpg?v=1701944767) It literally pushes the button for you ---------------------------------------------------------------------- Sapd33 · 2023-12-11 09:05 > f it does, you can then ping the home pc by unblocking the correct port trough firewall in your router That will not work with every BIOS. Classical WoL will require a Magic packet ---------------------------------------------------------------------- Ok-Benefit985 · 2023-12-11 09:27 I use SwitchBot, but you also need to purchase the hub to have remote access. ---------------------------------------------------------------------- JakeSully-Navi · 2023-12-11 09:28 If the bios supports WOL then it works on them. It can only work from power off state if the BIOS has this function otherwise it won't work. ---------------------------------------------------------------------- kalsan15 · 2023-12-11 09:33 Many years ago, there was a server that it got itself stuck occasionally. To reset it, a physical button had to be pressed. Legend goes that the sysadmins installed another server with a CD drive facing the misbehaving server and fixed an object to it. Everytime the server got stuck, they used the \`eject\` command on the other server, opening the CD tray, pushing that object into the stuck server's reset button. ---------------------------------------------------------------------- Innocent__Rain · 2023-12-11 09:34 is this supposed to be an ad? ---------------------------------------------------------------------- s7orm · 2023-12-11 09:35 I use an ESP8266 attached to the power switch to turn on my gaming PC with Home Assistant. ---------------------------------------------------------------------- s7orm · 2023-12-11 09:37 I use an ESP8266 and ESPHome with Home Assistant to do just this. ---------------------------------------------------------------------- fizbin · 2023-12-11 09:39 Could you explain why wake-on-lan isn't a possibility? If it's because your server is connected only wirelessly, one thing I've done is get an old wifi router that I can flash with openWRT (sometimes, you can even find these in thrift stores) and then set that up next to the server so that the router connects to Wi-Fi and connects via cable to the server, and there are packages for openWRT that can generate the wake-on-lan magic packet. Presumably, you could then set things up to do the wake-on-lan in response to a ping from outside, through when I had that setup I never automated it and just used ssh. You could also use a raspberry pi as the device that's directly connected to deliver the magic packet. ---------------------------------------------------------------------- danirebollo · 2023-12-11 09:45 Connect power button to gnd using an optocoupler and esp8266 board. I have this arrangement with one server and it is cheap and effective. I've tried piKVM but is overkill for this purpose. ---------------------------------------------------------------------- Noname8899555 · 2023-12-11 10:02 You can look for ipmi extension cards via pcie no?? ---------------------------------------------------------------------- Cybasura · 2023-12-11 10:12 Unfortunately for some reason, my laptops wont cooperate, the Wake on LAN never ever wakes them up ---------------------------------------------------------------------- Cybasura · 2023-12-11 10:17 Is it strong enough to press down on a inward (concave) button on a laptop? I tried putting it on top of the laptop but the top half cant be closed because the bot is blocking it, and for some reason, it feels weak Like it pushes itself up but doesnt push the button down ---------------------------------------------------------------------- ElevenNotes · 2023-12-11 10:20 Did you by any chance enable energy saving options to disable the NIC while not used? You can easily check that if your device is in hibernation on the NIC LED is off and on your switch there is no data link to your device. ---------------------------------------------------------------------- Cybasura · 2023-12-11 10:23 I dont think so, I'll check again iirc WoL works even when the laptop is turned off? Additionally, regarding your last part, if the energy saving option is disabled, the interface on the network adapter and the switch should be green and lit up when connected to the network switch right? ---------------------------------------------------------------------- ElevenNotes · 2023-12-11 10:24 Correct. Some devices drop the speed from 1GbE down to 100MbE when in standby to save energy, but the LED should be on, regardless of the speed. ---------------------------------------------------------------------- Cybasura · 2023-12-11 10:28 I see, thanks! I'll give it another shot later ---------------------------------------------------------------------- BeerAndLove · 2023-12-11 10:41 A lot of NUC type PCs have this set up by a jumper on the motherboard (raise Your hands if You remember those) Check Your NUC's manual ---------------------------------------------------------------------- Bayyo · 2023-12-11 11:02 Doesn’t your board support wake on lan? I have it configured that way with Home Assistant. ---------------------------------------------------------------------- fishfeet_ · 2023-12-11 11:07 This is also my method of doing so. Could never get wol to work and ipmi cards are too pricey ---------------------------------------------------------------------- s7orm · 2023-12-11 11:08 I've never had luck with WOL, the power switch option has the added benefit of knowing when my PC is on and the ability to turn it off, without having any software installed. ---------------------------------------------------------------------- Bayyo · 2023-12-11 11:11 That one sounds good, i found a small program i run on my Windows Pc which integrates into Homeassistant and lets me control it. For turning it on i use wol which works perfectly for me. ---------------------------------------------------------------------- Nokushi · 2023-12-11 11:17 nope, nothing like that :/ i've searched for almost an entire afternoon when i got it and tried to enable the power loss recovery, but there's none, and quite frankly i'm still surprised i can't set it up, so i went in another way and setup a rpi which pings my NUC and send a WoL packet if it detects it went down if anyone has a UM590 and succeeded at enabling, i would be happy to hear how you did it ---------------------------------------------------------------------- Nokushi · 2023-12-11 11:18 thanks, i'll check that! ---------------------------------------------------------------------- SimonLeBonTon · 2023-12-11 11:30 I don't know, never had one :P I guess you can calibrate it? It's probably not the best idea for laptops I assume ---------------------------------------------------------------------- Bosshappy · 2023-12-11 12:03 This. I have a Pi KVM hooked to an APC. It works like a charm ---------------------------------------------------------------------- aosroyal2 · 2023-12-11 13:09 Wake on lan ---------------------------------------------------------------------- die9991 · 2023-12-11 13:21 What a beautiful solution. ---------------------------------------------------------------------- Icy_Jellyfish_6948 · 2023-12-11 13:40 What about plugging in your server's power to a smart plug which can connect to wifi. Most smart switches once connected can be managed through the manufacturer's app, that through internet from anywhere in the world. You can get one that works with Alexa/Google assistant too. However, your motherboard should support "Power On AC" which means the PC should start when power is supplied. This is what I do for few years because, most of my hardware doesn't support WOL or so. You can even setup schedules for this. If you want to shutdown the PC gracefully on schedule, you can make use of crontabs too. I can get a smart plug below 10 USD where I live. ---------------------------------------------------------------------- Mintfresh22 · 2023-12-11 13:41 I have my butler go and push the power button for me. ---------------------------------------------------------------------- The_Basic_Shapes · 2023-12-11 13:45 Yeah WOL sucks. I've gotten it to work, but if your PC/server is off for too long, the magic packets simply stop getting forwarded. Might be an issue with my router (though I've tried with several consumer grade routers). Eventually I want to get a server and set up openWRT and replace my home router with that. That will be a fun project... ---------------------------------------------------------------------- stephendt · 2023-12-11 13:49 A few general tips: 1. Ensure your OS allows the NIC to stay awake, and to accept magic packets. Some OS settings prevent the NIC from being active under certain power states. Google this and check your settings 2. Check BIOS power saving settings. Sometimes WOL is disabled by default via energy saving settings (e.g ERP standby) 3. Test WOL under sleep and hibernate instead of full power off. Some systems just don;t 4. Some systems wont allow WOL to function until it has powered on for the first time. Meaning that if your system is losing power (e.g if it's shutting down and it's on a power timer) then WOL won't work. If this is the case consider configuring your system to wake via power connection ---------------------------------------------------------------------- alex2003super · 2023-12-11 13:54 Just make sure to use a dry-contact relay Shelly, like the Shelly 1 OP is suggesting (or even better, a Shelly Plus 1 Mini, or Plus 1, which are not discontinued unlike the old Shelly 1. Non-dry contact Shellys won't work with LVDC and will instead fry your gear when fed mains voltage. ---------------------------------------------------------------------- SpongederpSquarefap · 2023-12-11 14:00 You've got several options for this - Wake on LAN as you mentioned (although not applicable here) - Wake on ring (it's a BIOS setting that lets you choose a power on time) - Pi KVM (can also be used for WOL) ---------------------------------------------------------------------- hootyscoots · 2023-12-11 14:17 Lil late but you can buy remote button pushers. Like for a power button.. ---------------------------------------------------------------------- blondyman1503 · 2023-12-11 14:32 Unless you use Home Assistant on a device with a bluetooth adapter within range ---------------------------------------------------------------------- defrillo · 2023-12-11 14:46 You can use a smart plug and activate the auto AC power-on in the BIOS When you switch on the smart plug the PC will boot, easy ---------------------------------------------------------------------- [deleted] · 2023-12-11 14:56 [removed] ---------------------------------------------------------------------- mkosmo · 2023-12-11 14:57 And here I am concerned about the airflow challenges that introduced lol ---------------------------------------------------------------------- sousavfl · 2023-12-11 14:59 This is also my method. Shelly plug S and power on after power failure ---------------------------------------------------------------------- ninjersteve · 2023-12-11 15:05 Just to make sure you are testing the right thing also: wake on LAN requires sending a special packet on your local network, not just trying to access the computer. It works via the MAC address, not the IP. so you’d need some other device on your network that can send the packet that is on. Could be your router (if it supports that) or another computer. ---------------------------------------------------------------------- Jay-Five · 2023-12-11 15:05 This is what I do when my server goes Tango Uniform and I'm not home to push the happy button... If you want a funky way, get a smart button pusher. [https://www.amazon.com/SwitchBot-switch-button-controlled- compatible/dp/B07B7NXV4R](https://www.amazon.com/SwitchBot-switch- button-controlled-compatible/dp/B07B7NXV4R) ---------------------------------------------------------------------- Theon · 2023-12-11 15:12 [ITAPPMONROBOT](https://thedailywtf.com/articles/itappmonrobot) ---------------------------------------------------------------------- Penguinexpert1 · 2023-12-11 15:25 Something like this that pushes the on button on the PC for you might be worth a shot? https://www.amazon.co.uk/SwitchBot-Smart-Switch- Button-Pusher/dp/B07B7NXV4R?th=1 ---------------------------------------------------------------------- faustom721 · 2023-12-11 15:29 Bro use [this](https://www.amazon.com/gp/product/B084WWC9NS/ref=ppx_yo _dt_b_asin_title_o01_s00?ie=UTF8&psc=1). I have the same situation, this PCI-e relay switch is by far the easiest solution. It just connects to your wifi, gets its own IP and then it's just another smart swith in your home. I just use Alexa to turn on/off my server with this. ---------------------------------------------------------------------- International-Camp28 · 2023-12-11 15:29 If it's a regular PC, turn it on then only set it to go to sleep. Use wake on lan. That's how I do it. I'm not sure if you can change which port you can use to wake it up because by default port 9 is the wake on lan port. ---------------------------------------------------------------------- Ydupc · 2023-12-11 15:36 Personally all my servers have iLO (various versions, most G8 servers I have have iLO4 and the G9/10 servers have iLO5) and I use that to manage them with a vpn so i can access the local ip of each iLO page (and the iLO federation stuff which allows me to manager loads from one panel) ---------------------------------------------------------------------- Hoopae · 2023-12-11 15:38 Have this setup right now, and it works flawlessly. * Smart Switch controlled via Alexa app (although I could and probably should set this up with HomeAssistant, it's just a Zigbee switch. Just haven't gotten around to getting a Pi to run HA) * My consumer mobo (Gigabyte B450-M DS3H) has a "power on after AC loss" setting, so server boots into Ubuntu when the smart switch turns on * Docker automatically starts and runs Portainer CE * Portainer automatically starts all my services * Tautulli pings a Discord server when Plex is available * Tailscale starts with system boot as well, so I can manage the server remotely if necessary. ---------------------------------------------------------------------- eagle6705 · 2023-12-11 15:42 A low cost even dirt cheap one is using a wifi enabled smart plug lol, just turn on the wake on power loss and flip that status of the plug and bam server is up. ---------------------------------------------------------------------- prone-to-drift · 2023-12-11 15:48 Paste ghe bot's base for leverage. ---------------------------------------------------------------------- HTTP_404_NotFound · 2023-12-11 15:51 If WOL isn't possible, here are a few options. 1. If your hardware supports Intel vPro / AMT, this functions as a remote KVM. 2. You can use a smart-switch to turn the power on, and configure the BIOS to always turn on, when the power is restored. So- turning the switch off/on again, would cause it to boot up. If, you aren't scared of 3.3v electronics, you can also put a D1 mini inside of your PC case, and use optocouplers to have it control the power sw pins on the motherboard. You can also pass it the pw LED signal, so you can determine if it is on or not. ---------------------------------------------------------------------- thepenis_mightier · 2023-12-11 15:51 vPro has come in handy for me multiple times. When I upgraded one of my machines with a "new" 3rd gen Intel motherboard, I had the chance to toss in an i7-3770K, but elected for the non-K 3770 due to vPro capabilities - namely the ability to power it off and on remotely. ---------------------------------------------------------------------- Catsrules · 2023-12-11 16:04 >CD Drive Don't you mean cup holder? ---------------------------------------------------------------------- thepenis_mightier · 2023-12-11 16:21 I still have a glasses case full of jumpers and screws from my youth... ---------------------------------------------------------------------- violet-crayola · 2023-12-11 16:22 Hmm. Wait - and how would I connect to it? ---------------------------------------------------------------------- eehbkl · 2023-12-11 16:25 Are the PC pins 12v or 5v? This method would only work if it was 5v right? ---------------------------------------------------------------------- DaoFerret · 2023-12-11 16:26 If you’re going that route, pfsense was a better alternative (last I looked a bunch of years ago). OpenWRT was nice for replacing the firmware on a small router, but pfsense let you get all the options of a commercial router (if your hardware had the oomph to support it). Also, if you’re running WiFi, just look at some of the Mesh Wifi systems out from a lot of the major hardware makers. Those are pretty nice, and I’m not sure it’s worth most people’s trouble to handle that side of things. ---------------------------------------------------------------------- utkuozdemir · 2023-12-11 16:26 I have an Optiplex 7070 running Linux, I know that it has vPro but never used it. It doesn't seem trivial to use it. Can you share how you make use of it? ---------------------------------------------------------------------- DaoFerret · 2023-12-11 16:27 Nice setup! This really seems like the best answer I’ve seen on here so far. ---------------------------------------------------------------------- thepenis_mightier · 2023-12-11 16:43 The most useful part is the web UI that can be accessed even when the machine is powered off (as long as it's still connected to the network). I still need to set it up on my 3770 system. [Here's a basic rundown on how to set it up](https://virtualizationreview.com/articles/2020/01/13/configuring- intel-amt.aspx?m=1), just keep in mind that some steps may vary depending on the BIOS revision and brand of computer you're using. One thing to keep in mind, if you want full KVM capability, the machine cannot have a separate graphics card as the KVM utilizes the CPU's integrated GPU. A separate graphics card typically disables the iGPU. ---------------------------------------------------------------------- [deleted] · 2023-12-11 17:17 [removed] ---------------------------------------------------------------------- thepenis_mightier · 2023-12-11 17:18 vPro* ---------------------------------------------------------------------- Daniel15 · 2023-12-11 17:42 OpenWrt is a good piece of software. I was testing both opnSense and OpenWrt on an SFF PC with a Core i5-9500. I have a 10Gbps internet connection and couldn't get pfsense to handle 10Gbps throughput (max I got was around 3Gbps after spending hours tweaking it) whereas OpenWrt handled it with no issues and much less CPU usage. These days, Linux based routers (OpenWrt, VyOS, etc) are way more efficient than BSD-based routers. I agree that pfsense/opnSense is more "enterprise-y" and has more features, but I just didn't need those on my home network. ---------------------------------------------------------------------- gojukebox · 2023-12-11 17:52 I use PiKVM ---------------------------------------------------------------------- tehdon · 2023-12-11 17:53 Why wouldn't you run the server all the time? Remote start up and shut down of consumer grade electronics is going to be a bit of the pain in the ass as you'll have to have something that's always running to listen for the wake request. You could run an RPI listening for an event and have it trip a relay to start the PC, or maybe bridge the power-on connector on the mobo, or wake-on-lan for you on local. That's probably what I'd do. RPI listening for an event that then WoLs the box. Or I'd just leave the box on. ---------------------------------------------------------------------- necksnapper · 2023-12-11 17:54 What "wake on X" do you have available? ​ Why isnt wake on lan possible? seems like the obvious one ---------------------------------------------------------------------- redcodesic · 2023-12-11 18:26 you could try a [smart plug](https://www.amazon.de/-/en/Consumption- Wireless-Connection-Compatible-Assistants/dp/B07YBL91XQ) ---------------------------------------------------------------------- [deleted] · 2023-12-11 18:33 [removed] ---------------------------------------------------------------------- [deleted] · 2023-12-11 18:34 [removed] ---------------------------------------------------------------------- Square_Lawfulness_33 · 2023-12-11 19:02 Pikvm ---------------------------------------------------------------------- ZAFJB · 2023-12-11 19:15 I called work once, and told them to push a button a on a server. They pushed the button on the UPS and shut the rack down. ---------------------------------------------------------------------- bobj33 · 2023-12-11 19:16 Are you sure Wake On LAN doesn't work? Every consumer motherboard and ethernet card I've had since the late 1990's has supported it. I have a server at my parents house that stays off 99% of the time. I have a Raspberry Pi that idles under 2W that sets up a reverse ssh tunnel to my house. I log in to the pi and run a command to send the server the wake on lan packet. ---------------------------------------------------------------------- s7orm · 2023-12-11 19:32 They are 5V ---------------------------------------------------------------------- DutchOfBurdock · 2023-12-11 19:36 Smart plug and hope your BIOS has a function to enable power on when power is available. That way you'd only need to flip the smart plug on and off to power on PC. Shutdown the usual way. ---------------------------------------------------------------------- dn512215 · 2023-12-11 19:42 This. Also make sure the port on your switch or router is set to auto- negotiate and not set to Gb or something. I was banging my head for a couple days with one server, and this was it. ---------------------------------------------------------------------- Low-Concentrate2162 · 2023-12-11 19:48 I believe the wake on lan function on Moonlight also works remotely over the internet, might wanna google it. ---------------------------------------------------------------------- -rwsr-xr-x · 2023-12-11 19:56 I use [wakeonlan](https://help.ubuntu.com/community/WakeOnLan) for all of my machines, and configure [Guacamole](https://guacamole.apache.org/) to push the WOL packet, delay 30-300 seconds (depending on machine) and then give me a terminal session to the server. For machines that do not support WoL, I have them configured with a [Sonoff S31](https://sonoff.tech/product/smart-plugs/s31-s31lite/) smart plug [flashed with Tasmota](https://tasmota.github.io/docs/devices/Sonoff-S31/), and I can turn on/of those plugs via voice, Alexa, webhook, NFC tag or other means. My Raspberry Pi4 and Orange Pi5 clusters are all PoE powered so I can control those directly via my switch and power on/off on demand, locally or remotely. I build the Tasmota firmware for the S31's nightly, and expose the [Prometheus](https://prometheus.io/) endpoint so I can also monitor the current used by these devices in real time with the data pushed to [Grafana](https://grafana.com/). I have ~30 of them in my home/homelab, and servers, appliances, sump pump, fans, etc. are all monitored by my S31 fleet. All of this works seamlessly over my VPN, so I can do it from 3 feet away in my office or 3,000 miles away in a different hemisphere. Hope that helps. Feel free to ask any questions and I'll do my best to help you out. ---------------------------------------------------------------------- billFoldDog · 2023-12-11 20:11 This is not an electrically sound solution. ---------------------------------------------------------------------- lledargo · 2023-12-11 20:15 Little fun fact for you: it was commonly called a CD tray because the combination of C and D looks a bit like a coffee mug with a handle, which is what the tray was designed to hold. ---------------------------------------------------------------------- AnomalyNexus · 2023-12-11 20:33 I thought esp 8266 pins are 3.3v? ---------------------------------------------------------------------- s7orm · 2023-12-11 20:36 They are, but it is 5V tolerant. My implementation used the ground wires so it would still be 5V from the motherboard in all the wires, and at no point do I "send" voltage from the ESP8266 which would be 3.3V. ---------------------------------------------------------------------- CatsAreGods · 2023-12-11 20:44 I did this back in the 90s using an X10 phone-linked remote controller from California to NY! ---------------------------------------------------------------------- TheQuantumPhysicist · 2023-12-11 20:53 I hacked into the power button of my server, hooked it with a relay module, connected the relay control inputs with a Raspberry Pi GPIO outputs, and wrote a little python/php script with a simple web page to control that, where a submit of a form calls the python scripts, which triggers the GPIO pins of the relay module to turn out/off my server(s). Search for it online, you'll find it. I don't want to directly specify it here. It's not that hard to do, but it's a bit of work. ---------------------------------------------------------------------- whatisuser · 2023-12-11 20:53 They sell specific esp8266 boards for this: https://devices.esphome.io/devices/eWeLink-SANT-SUD01 ---------------------------------------------------------------------- whatisuser · 2023-12-11 20:59 I have a PCI powered esp8266 board which ‘presses’ the power switch for me, via homeassistant / esphome: https://devices.esphome.io/devices/eWeLink-SANT-SUD01 It is powered from always-on PCI power lines, and uses switched pins to detect power state. The physical power button is passed through, so it still works. I had it set up so I could turn my pc on from the living room so I could game on the tv via steam remote play. The only physical difference for the pc is a wireless antenna sticking out the back of the pc. ---------------------------------------------------------------------- predmijat · 2023-12-11 21:33 Maybe https://wiki.archlinux.org/title/Wake-on-LAN ---------------------------------------------------------------------- rjasan · 2023-12-11 21:42 Tplink Kasa smart plug is what I use. Have to make sure the bios is set to turn on when it sees power. Works for a frozen pc too. ---------------------------------------------------------------------- 01Yepiz · 2023-12-11 22:05 I have been using this [PC switch ](https://www.ajfriesen.com/pc- switch-update-discord/) with home assistant but I am sure you can use it with anything that can allow you to use ESPhome devices ---------------------------------------------------------------------- jaakhaamer · 2023-12-11 22:08 Unless that device is the one you're trying to power on remotely! ---------------------------------------------------------------------- catonic · 2023-12-11 22:21 eject -t ---------------------------------------------------------------------- catonic · 2023-12-11 22:24 Some PCI and ISA cards required a cable/jumper for WOL to work. WOL is the solution. The problem is that you need something else you can send the magic packet from, like a Raspberry Pi. ---------------------------------------------------------------------- steveh7 · 2023-12-11 22:47 How come? Should it have a relay/optoisolator in between? ---------------------------------------------------------------------- gonsaaa · 2023-12-11 23:35 I have practically the same setup, lots of lxc and a vm running docker containers and portainer all in a proxmox ve. My question is, suddenly shutting the power down of the whole server daily doesn't damage anything? I mean, software wise or corrupt files? I have a raid 0 zfs. I'm afraid of turning off power like that. ---------------------------------------------------------------------- bepstein111 · 2023-12-11 23:43 I found a product on AliExpress recently that will accomplish this for way less than a PiKVM, albeit with way less features. Search for “Tuya PC controller”, you can get versions that get power from USB or a spare PCI slot, and then you plug it in between your power/reset buttons and the motherboard. That way your original buttons still work(passed through by this thing) and this board has WiFi and works with a phone app to send power/reset signals. ---------------------------------------------------------------------- Vegetable-Let3801 · 2023-12-11 23:45 i use an ESP32 and a relay... i setupped it in two ways: push button to turn on and off and push the button for 5 seconds to force shutdown. The relay is wired to the orginal 2 pin on motherboard connected to power button, keeping it working. The ESP32, is powered by motherboard itself, through USB... even when it's completely shutdown, there are two USB on motherboard always on. All is working through Sinric website, giving me the possibility to manage it through cloud, even if i am outside home. I can turn it on and off, even with Alexa... if you need the code, i could share it... it's really easy to do the same thing ---------------------------------------------------------------------- roboj3rk · 2023-12-12 01:35 If possible. just getting a smart plug and setting PC to boot at power on will probably be easiest. You could even set up a schedule if you wanted. A piKVM would be the most complete solution and you get remote management as well. Another hacky solution is this guy that used a PCB you can place in between the jumpers on the mother board and the buttons on a PC case. The PCB has wifi so you can send commands to it. He's even got a youtube video. https://noisycarlos.com/project/how-to-turn-your-computer-on-and-off- remotely/ ---------------------------------------------------------------------- billFoldDog · 2023-12-12 02:01 Relay/optoisolator would probably be overkill. The power switch on a PC simply grounds a circuit. The high end of the wire is usuallu 3.3V or 5V. You wouldn't wire a GPIO directly to that for a bunch of reasons. Instead, use a MOSFET transitor. Create a parallel cirfuit to the momentary push button that connects the source to push button high, the drain to push button low, and the GPIO pin to the gate. When the GPIO goes high, the gate opens and the push button high is grounded to the push button low. You might want to also add a 10 ohm resistor, just in case. ---------------------------------------------------------------------- Nebakanezzer · 2023-12-12 03:11 Bios option to power on after power loss. Switched pdu. Shut down pc properly. Remote into pdu and turn on the power to that outlet. ---------------------------------------------------------------------- Soberaddiction1 · 2023-12-12 04:11 I set my bios to turn on after power restoration and then plugged my server into a smart outlet. I can SSH through vpn and shutdown/turn on the server as needed. ---------------------------------------------------------------------- dsahai · 2023-12-12 04:26 I have a very simple solution. I use a Meross smart plug and turn on the plug using their app. Works perfectly for me. ---------------------------------------------------------------------- No_Advice_1240 · 2023-12-12 06:23 I do this too. Very simple solution. ---------------------------------------------------------------------- dlbpeon · 2023-12-12 06:33 Brother-in-law does tech support. He had a 3 hour support call with the University Dean on why their systems wouldn't boot. He ended up making an hour long ride to the school to see for himself what the problem was. Some underling had installed a few powerstrips/UPS(s) to the room, and someone else had flipped the master switch to those strips off. BIL had to explain to a $100K/year employee that computers won't turn on without electricity supplied to them. ---------------------------------------------------------------------- dlbpeon · 2023-12-12 06:35 Oh, you sweet summer child! To be young and naive, like you again......... ---------------------------------------------------------------------- Decent-Fennel-8877 · 2023-12-12 06:40 I just did this, but instead of http server, i made a telegram bot that listens for a specific message. That way you dont have to forward ports or anything if you are not at home. Also you can power the esp from the usb port of the pc even if it is off if you turn on that option in the bios. ---------------------------------------------------------------------- PovilasID · 2023-12-12 06:47 OpenWRT. If you have a WiFi router you are probably running it 24/7, if it is OpenWRT compatible it will let you send eather wake packets to your devices on your network and much more. ---------------------------------------------------------------------- TheRealFAG69 · 2023-12-12 08:50 I use a smart wall plug and enable restore on power :) ---------------------------------------------------------------------- necksnapper · 2023-12-12 12:57 >dlbpeon I think you forgot to add the part where your comment is useful ---------------------------------------------------------------------- TheVirus32 · 2023-12-12 18:55 Have a pi zero w act as your switch :) - and if you have home assistant then it really can become a switch :') ---------------------------------------------------------------------- xTH13M0x · 2023-12-13 10:32 Its worth a try, thanks :) ---------------------------------------------------------------------- Kaikidan · 2023-12-13 11:50 I basically run the same setup as yours for remote restarting, Only diference is that I use ntfy to send server critical warnings and uptime kuma warnings instead of discord (as it drains a lot of battery from my phone) and telegram for the tautulli notifications. have you tried it? pretty minimal and lightweight instalation both for server and phone,and NEVER had problems with it. ---------------------------------------------------------------------- Hoopae · 2023-12-13 13:23 I haven't, no, but I'll check it out ---------------------------------------------------------------------- kaankeskin · 2023-12-14 14:23 what if the other server with the CD drive is shut down 😱 ---------------------------------------------------------------------- Maryannus · 2023-12-14 15:30 The more stories I hear of the early days of the internet, the more I feel like I was born half a decade too late. ---------------------------------------------------------------------- utkuozdemir · 2023-12-15 20:34 I’ll check it out, thank you.