Mac Instructions click here.
Linux Instructions click here.
Step 1) Launch the app Task Scheduler in Windows.
Step 2) Action -> Create Task
Step 3) On the “General Tab” type in the name. I recommend for the IPv4 address to type in IPv4 and the machine’s name. That way you can easily find it later in your tasks when you search for it. (You’ll need to create a task for both your IPv4 and IPv6 address. But if you don’t have IPv6 you can only setup IPv4 if you so desire.) Click on “Run whether user is logged on or not” and make sure “Run with highest privileges is checked. This will prevent a Window from showing up and annoying you when the trigger is run.
Step 4) Click on the “Trigger” tab next. Click “New” to create a new trigger. Here you are going to create two triggers. The first trigger is for when the machine boots up. For the menu “Begin the task” select “At Startup.” Then under Advanced settings check “Repeat task for every 1 minute.” Now, 1 minute won’t be an option but if you click your mouse in the little window you can specify 1 minute by typing “1 minute.” Finally, select “for a duration of: Indefinitely.” Note—when using the task scheduler you’ll only be able to ping every minute, you can’t go below 1 minute like 30 seconds. This is a limitation of task scheduler but not a huge one because you’ll know within a minute if your machine is unavailable or your IP changes. Click “Okay.”
Step 5) This is an optional trigger but I like it because for the first “trigger” to start you have to reboot your computer. So I like to setup another trigger where you Begin the task: “At task creation/modification.” That way after you’re done or you modify this task in the future for any reason it’ll automatically run without having to reboot your computer. So follow the steps in step 4 with the only difference being beginning the task when its created or modified.
Step 6) In Task Schedule, click on the “Actions” tab. Click “New.” For “Action” select “Start a Program as seen in the image below. For “Settings” type “powershell” in the box, since you will run a powershell script. In the “Add Arguments” Box copy and paste this to get your IPv4 address:
-ExecutionPolicy unrestricted -Command “(New-Object Net.WebClient).DownloadString(\”https://ipv4.myipnotify.com/ip.php?key=apirandomseriesofcharactershere\”)”
Then, go to your My Devices panel and copy and paste the “https://ipv4.myipnotify.com/ip.php?key=apirandomseriesofcharactershere” with the “IPv4 Device Key Link.”
Step 7) Repeat the steps to fetch your IPv6 address using the same steps above. Under “Actions” click “Run” and go to your My Device panel and see if it detects your IPv4 and IPv6 addresses.
Step 8) If you click on Active Tasks you can see and verify the tasks you created for your IPv4 and IPv6 address.
Step 1) Download Ping Uptime Monitor from the Mac App Store: https://apps.apple.com/us/app/ping-uptime-monitor/id1532271726?mt=12
Ping is a simple uptime monitor that uses your Mac’s internet connection. Keep track of the status & speed of your websites, APIs or any endpoint and get feedback directly in your menu bar and via notifications.
- Heads-up-display of the status of all your sites right in the menu bar.
- Get local notifications when a url is erroring or unreachable.
- HTTP & ICMP pinging
- Measure and configure response times to see if a url is performing slowly.
- Control how often you want to ping your urls.
- Customize the information you want to display.
- Secure & private: no tracking or analytics.
- Fully native app with performance in mind.
Instead of paying a monthly fee for an external notification service, get notified directly for free while you are actively working at your computer. Ideal for webmasters, dev ops, consultants, or anyone!
Free, limited version available via the App Store with Ping Pro in-app purchase upgrade. Or you can buy Ping Pro directly here.
Step 2) Go to My Devices and create a new device.
Step 3) Copy the IPv4 Device Key Link for the device you want to track.
Step 4) Go back to Ping Uptime Monitor and go to the Site Manager. In the Site Manager, add a new site, edit site and paste the link. Name your device with IPv4 “Your Name” or IPv6 “Your Name.”
Step 5) Important! In the Ping Uptime Monitor preferences adjust the ping interval to your liking—5 seconds is usually good. Always want to have the Timeout settings in the Device Panel for each device to be above your ping rate. If it’s not, then your device will go offline and online repeatedly. Please ensure you’re using HEAD requests. MyIPNotify does not use the ICMP “ping” protocol.
Step 6) Repeat and copy the IPv6 Device Key Link for each device into the Ping Uptime Monitor. Your uptime monitor app will look like this:
- If you run a linux server you can use cURL with a Cron job set to every minute to get the IP address. Create a new script in your favorite scripting language.
- Make sure you “chmod +x” (make the .zsh or .sh is an executable) before running.
- For Bash the top shebang line is #!/bin/bash and .zsh is #!/bin/zsh.
- Setup a Cron job on your server to run every minute. *Note, setting up a Cron job can change depending on your hosting provider. One way is to SSH into your server via the command line and type crontab -e. To run a Bash script every minute it would look like this:
- * * * * * sh /home/somedirectory/myscript.sh
- Go back to MyDevice panel and make sure you’re getting the “pings.”