Raspberry pi 2 on Dynamic IP and NOIP

Use Raspberry pi 2 on Dynamic IP and NOIP and to create a free easy to remember hostname and connect to your Pi running on a Dynamic IP.

Almost all ISPs provide a dynamic dns address to your home internet connection.  This is done for a variety of reasons – one of which is to prevent hackers from attacking a single address  consistently.

Overview :
  • Download and boot the Pi with Raspbian.
  • Create a Free domain host name at noip.com
  • Install the Dynamic update client on your Pi
  • Connect to your Pi remotely.

Time and Difficulty :

  • Time : About 10 mins once you have the Image file and the rest of the software.
  • Newbie Difficulty level : Moderate . Will need to use the terminal

 

 

Now that you have added a host or domain into your account, we have to deal with the dynamic IP address problem. To make noip automatically update the IP address everytime your isp changes your IP address, you will need to install noip’s Dynamic Update Client.

To install the DUC on the Raspberry Pi, Enter  the following commands at the terminal :

  1. “sudo mkdir /home/pi/noip ” ( Create a folder for noip’s DUC)
  2. cd /home/pi/noip” (Change working folder to the new folder just created)
  3. sudo wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz” (Download the Software)
  4. sudo tar vzxf noip-duc-linux.tar.gz” (Extract the downloaded software)
  5. ls” (to show the newly folder created by extracting the archive)
  6. cd noip-2.1.9-1” (Change working directory to noip-2.1.9-1 or what ever is the newly created folder by the step above)

You will now need to compile and install the downloaded DUC  by entering :

  1. sudo make
  2. sudo make install (during the install process you will need to enter your email and password that you created at noip.com)

the Dynamic Update client is started by running  “sudo /usr/local/bin/noip2” .

The DUC service will now run until the Pi is shutdown.

To make the DUC startup automatically and run in the back ground, We will need write a small script that will execute at startup.

5 thoughts on “Raspberry pi 2 on Dynamic IP and NOIP”

Leave a Reply