Skip to content

adampaulukanis/noip-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

noip-client

I need something to update my account at noip with the correct external IP.

How to obtain your external IP

There are a few methods of doing it:

Installation

  1. git clone this repo
  2. npm install # on OpenBSD it may take a while and be issued more than once (SQLite3)
  3. cp .env-temp .env
  4. $EDITOR .env

Documentation

here

How To Use

npm run updateIP

My use case

I use it on my server and my crontab looks like this:

$ crontab  -l
SHELL=/bin/sh
MAILTO=adam
HOME=/home/adam/noip-client
#
#minute (0-59)
#|   hour (0-23)
#|   |    day of the month (1-31)
#|   |    |   month of the year (1-12 or Jan-Dec)
#|   |    |   |   day of the week (0-6 with 0=Sun or Sun-Sat)
#|   |    |   |   |   commands
#|   |    |   |   |   |
#### update IP every 3 hours and at every reboot
27  */3   *   *   *   npm run updateIP 
@reboot npm run updateIP

Confirmation of your host name via email

Every once in a while I receive an email from noip saying ACTION REQUIRED: $YOURHOSTNAME is Expiring Soon and I need to click on Confirm Hostname. Do not neglect it!

Logs

  • If you see in your logs (in my.db) something like this YOUR_IP_IF_YOU_WANT_TO_PROVIDE it may and probably means you run this program simply with node index, where it should be ideally run like this npm run updateIP. This way the correct IP will be provided (hopefully) OR there is a problem with your network. Check the error bit.

  • The logged time is the UTC zone (JS function new Date().toUTCString()).

About

update my noip

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published