This is the final part of the mining monitoring series. This Part 4 will auto restart your mining rig if it freezes. Free online service will be used which will ping your mining rig continuously, in case of rig freeze when the service can’t ping your rig, then the smart plug will reset the power and will make the rig to boot up.
In previous parts, I have created a Powershell script that can restart miner, rig, provide notification and connect to a different network if no Internet found. All these can happen if mining rig is not hanged up if somehow rig is frozen/deadlocked then no program can work not even my Powershell script. So in this article, you will know how to restart the mining rig automatically if it is hanged up. Check Previous Parts of this Mining Monitoring Series
Page Contents
Getting a Static IP
You need to have a static IP address, don’t worry if you don’t have one. If you are already having a static IP address then skip this part but if your ISP provides you a dynamic address then follow the steps below to get free static IP address.
You can ask your ISP for static IP address, but they will charge you extra for that like $5/month for static IP address
How to Get Free Static IP Address from Dynamic Address?
1. Go to www.noip.com
2. Complete registration.
3. At noip go to Dynamic DNS >> Hostname >> Create Hostname.

4. Enter any hostname, check the image below for reference.
Your hostname will expire after every 30 days but you can always renew it for free. If you want to have a never-expiring hostname then buy their premium service which will cost $24/year. BTW I am using free service
5. Download their dynamic update client and configure it.
6. Open your router settings and go to DDNS and do the following as shown in the image below.
On your router setting page, you have to find DDNS setting, the UI of each router will be different.
7. That’s all, you get DDNS which will act as a static IP address, for me it is jkcrypto.ddns.com.

Auto Restart Mining Rig if Freezes
1. Considering you have a static IP address, now you have to register on monitoring service.
2. I have used Spiceworks and Uptimerobot both are free and work great.
3. Use any of the above services, for this tutorial I am using Uptimerobot.
4. Register on uptime robot and click on “Add New Monitor “
5. Choose Monitor type Ping and in IP (or Host) enter your static IP address or DDNS address.

6. Now you need to enable ICMP ping request. So that uptime robot can ping your rig remotely to check its status.
7. To Enable ICMP: Open command prompt in administrator mode
8. Copy and paste the following command and hit Enter.
netsh advfirewall firewall add rule name=”ICMP Allow incoming V4 echo request” protocol=icmpv4:8,any dir=in action=allow
9. That is it. If your rig is powered off or hanged up then it can’t be pinged by remote service. You will get rig down notification via email.
Creating Label in Gmail :
1. Open Gmail and go-to gear icon on top right >> Settings.
2. Now go to Filters and Blocked Addresses >> Create a new filter.
3. Considering this tutorial for uptime robot and if you are using Spiceworks network monitor then make changes accordingly.
In From field enter ” [email protected] “
In Subject field enter ” Monitor is DOWN”


4. Click on Create filter with this search >> Apply the label >> New label >> name it minerdown
Configuring Smart Plug
1. Buy Wemo Insights Smart Plug

This is a US-based plug and can take load up to 1800 watt. For Europe get similar smart plug like “Tp-Link smart plug“,
2. Connect Wemo with PSU and download the demo app and configure it.
3. In Wemo app connect to IFTTT and follow the steps

4. Visit IFTTT and register
5. Create new applet >> search for gmail >> ” New email in box labeled”

6. Enter the label name which you created previously, e.g minerdown.
7. Create trigger >> Wemo >> Wemo Insight Switch >> Turn On then Off.
I hope you like this article about how to automatically restart the mining rig after a crash. If facing problems in setup feel free to ask via comments below, always ready to help.
Dragon says
Got everything but the last part. Could you go through the trigger portion. I’m stuck there
ANUJ SAINI says
https://www.youtube.com/watch?v=moOZma93zqo&t=597s&list=WL&index=16
Dragon says
im wondering if my issue is the ip im linking to the Noip account, that ip i believe is from the ISP, when in my network i’ll go to whatismyip and its the same for all devices, so i’m assuming that why i’m not seeing a change in status with uptime robot, how can i get it to point to just my rig? thanks !! great info here
ANUJ SAINI says
You can set static IP manually as shown in video above.
Yes external IP will be same for each device that’s normal.
Dragon says
Thanks again. Working great. More often than I want. But better than not knowing it’s froze
Adam says
Why not just use https://minerstat.com ??
Dragon says
For some reason when windows freezes, uptime robot is still able to ping, i’ll login in with teamviewer and once my connection fails i know my rig has froze, but uptime still shows it as ok, i’ll wait about 15 minutes and no update
Raul says
hy, what about the power switch of the ring, if i just turn on switch off then will turn on not will power on the ring, i have to push the power botton for this goes on. Or i am little confused in this, can u explain me? thanks
ANUJ SAINI says
Check the video shared below it might help
Raul says
Thanks i will check!
Mark Hunter says
Hi all. I’ve followed the steps, but uptimerobot is saying my miner is down all the time. The no-ip client is running fine on the miner and using the right Ip address, it’s just that uptimerobot isn’t reading what no-ip is sending it. What is the link between the two and how can I check what’s going wrong? Cheers,
ANUJ SAINI says
Have you updated ddns setting in router that might be problem.
Mark Hunter says
https://uploads.disquscdn.com/images/aa4a289a7b612f25f1526455f87cf564417ef71f26fc7fe4b786b3638e230530.jpg
Hi. Attached is how the DDNS looks in my router. That IP address and host name are in all the relevant places on both no-ip and uptimerobot, yet they’re still not communicating – for example the miner is running fine now and yet uptimerobot still says its down even after refreshing.
ANUJ SAINI says
For me it works perfectly, try with spiceworks
Mark Hunter says
I’ve found an app that does the job – cheers
ANUJ SAINI says
Which app? Share
Mark Hunter says
https://ethmonitoring.com/. It doesn’t restart automatically yet, but everything else is very slick so I’m happy to do it manually.
Adam says
Why not just use https://minerstat.com ?