How to set up a Cron Job on OS X to Auto Update Your IP
This guide is for advanced users only.
- Open the program Terminal found in your Applications folder
- Type in: crontab -e and press Enter.
- Press "i" on the keyboard to enter insert mode.
Then paste in the following but make sure that your API key is included.
0 * * * * curl -o /dev/null http://unlo.it/YOUR_API_KEY_HERE
- Once you have pasted in the above line, press the ESC key on the keyboard to exit the insert mode. Then type in ":wq" and press Enter.
- You should then see crontab: installing new crontab in the terminal, which means that the cronjob was added successfully.
From now on your IP will update every hour. Please keep in mind that if you have a laptop and bring it to a new location the IP will be updated from this location.