How to Set Up a Cron Job on DD-WRT to Auto Update Your IP

This guide is for advanced users only. We don’t provide support for DD-WRT configuration.

By using a cronjob to visit your API url on a regular basis you can ensure that the IP in your Unlocator account is always up to date. Please see the examples of a couple of cronjob commands below.

# Hourly:
0 * * * * root wget --post-data='api_key=Your_API_KEY_HERE' https://unlocator.com/tool/api.php

# Every 3 hours
0 */3 * * * root wget --post-data='api_key=Your_API_KEY_HERE' https://unlocator.com/tool/api.php

# Every 12 hours
0 */12 * * * root wget --post-data='api_key=Your_API_KEY_HERE' https://unlocator.com/tool/api.php

How to Set up the Cronjob

1
Go to http://192.168.1.1 (or whatever is your gateway IP) and log in to your router. Default user info for DD-WRT is root/admin.
2
Go to Administration
3
Scroll down to Cron text box. Use the cron command of your choice found above. Don’t forget to use your own API url found in your Unlocator account home.
4
Click Apply.
5
Now the IP will be updated in the interval you have selected.
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us