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'

# Every 3 hours
0 */3 * * * root wget --post-data='api_key=Your_API_KEY_HERE'

# Every 12 hours
0 */12 * * * root wget --post-data='api_key=Your_API_KEY_HERE'

How to Set up the Cronjob

Go to (or whatever is your gateway IP) and log in to your router. Default user info for DD-WRT is root/admin.
Go to Administration
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.
Click Apply.
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