Sudo Su


Install no-ip on Raspberry

Date: 25 May, 2021

Having in our Raspberry Pi a dynamic DNS or DDNS can be very useful to access our services from anywhere without having to memorize our public IP or having to be aware that this has changed. Today I will explain in a few simple steps how to install no-ip on your Raspberry Pi.

How to create an account in no-ip

There are many alternatives to no-ip, but in my experience it is the easiest to use and the one that has worked best for me. This has a free plan that allows us to make use of their services with the only requirement to renew it every 30 days, which is not as annoying as it might seem since they notify you by email and it will take you 15 seconds to do it.

We will go to their official website by clicking here and create an account using the following form:

We will indicate our email and password, leave the Create my hostname later option selected, accept its terms and click on Free Sing up.

registro en no-ip

 

Then we will go to our email and we will have received an email similar to this one, we will click on “Confirm Account”.

confirmar cuenta en noip

 

Create our subdomain in no-ip

In this step we will basically create a subdomain in the free options offered by no-ip for our Raspberry.

We log in no-ip and where it says Dynamic DNS (in the left bar) we click on NO-IP Hostnames.

no-ip hostnames

 

We will open the window where our domains should appear, we will click on the button that says “Create hostname” and we will open a wizard.

In the Hostname field we put the name we want and in Domain we choose the domain that we like and that is free.

All other fields will be left as they have appeared and click on “Create Hostname“:

asistente que crea dominio dinamico

 

Installation of no-ip on Raspberry

In this step we will install in our Raspberry the DDNS service that no-ip offers us. What this does is to check if our public IP has changed, and this has happened it assigns the new IP automatically to the subdomain that we have created previously.

To perform the installation we will open our terminal and launch the following commands:

We will create a folder for noip in our home directory:

mkdir /home/pi/noip

We move to the directory we have just created:

cd /home/pi/noip

 

Launch the following command to start downloading the latest version of noip:

wget https://www.noip.com/client/linux/noip-duc-linux.tar.gz

 

At this point our terminal should look like this:

 

Now we will unzip the downloaded folder:

tar vzxf noip-duc-linux.tar.gz

 

We enter this folder:

cd noip-2.1.9-1

 

Install the program:

sudo make

 

When the installation is finished we run the wizard to configure the service:

sudo make install

 

First we enter the email address of our no-ip account.

Then it will ask for the password of this account.

Then it will ask us to enter how often we want no-ip to check that our public IP is the correct one, I have left it in 30 minutes, although you can put less.

In the next one we write Y.

And finally it will ask us to give a name to the script, I have called it noip.

All these steps should look like this in our terminal:

configuración no ip

 

Check

To make sure that our dynamic DNS is working, from any other machine we will ping the address we have previously registered, and if the ping is successful, no-ip is working correctly:

 

Thank you for having come this far and if you have any questions feel free to leave them in the comments. Best regards.


Author: Carlos Categories: Raspberry



Leave the first comment!-

Leave a Reply

Your email address will not be published. Required fields are marked *