How to Setup NOIP Client on Raspberry Pi

noip
Share:

NOIP is a free Dynamic DNS provider. Dynamic DNS is a system for allowing an Internet domain name (something.com) to be assigned to a dynamic (one that changes and is not always the same) IP address. Since the dynamic IP address changes, Dynamic DNS makes it possible for other computers on the Internet to establish connections to that machine without needing to know the actual IP address.

The IP address is tracked using No-IP.com’s Dynamic Update Client (DUC) software. When the address changes, the DNS record is automatically updated and connections made to the domain name get sent to the correct IP address regardless of what it’s changed to.

This is a short tutorial that will help you install noip client on your Raspberry Pi. Before we proceed you need to visit noip and register for an account. We will need the username & password during installation.

1. Create a directory for the installation

Open up the terminal and enter the following command.

Now navigate into the directory.

 2. Download the software

We will first download the software & then install it.

Give it some seconds and the file will be downloaded.

3. Extracts the files

The file that is downloaded is a tar.gz file, to extract the contents run the following command.

Enter the extracted directory

 4. Compile & Install the software

Compile the source code using the make command

Once that is done without errors, install it

While it install’s the software you will prompted to enter the username & password. Once that is done it will ask you teh refresh interval … leave it.. to have the default value. You are required to answer some more questions … just ans NO an d you should be good to go.

5. Start the client

After all is set, it’s time to start the client.

That’s it. You have successfully configured the client on your Raspberry Pi. Now the only problem is that you need to start the client every time you restart the Pi. We need to automate that.

6. Auto start the client on reboot

To do this we need to make some changes in the rc.local file. Open it using the following command

Once the file is open, have a look at the last two lines

We will modify it by adding /usr/local/bin/noip2 in between the two. Have a look below

rc_local

rc_local

Save the file & we are done. Now to check if the process is already running or not, execute the command

noip_process

noip_process

That’s it for now. Have a great day all !! bigsmile

Any issues, feel free to comment below….

29 Comments

  1. I have an issue, the process runs perfectly, I changed the NAT adress on no-ip manual (to a wrong IP) to see if it changes after my entered time (60 min). Still now the ip adress doesn´t changed. I saw something it the readme file, I have to give the process some root permissions. How I can fix it.

    Reply
    • Hi Paul,

      The issue here is the wrong IP address that you have entered to check (as you have mentioned).

      The way NOIP works is … it will use the client to track the original IP of your machine. So when you enter the proper IP address here. The noip server & the client will be in sync. And it will work as expected.

      In your case…as you have entered the wrong IP in the server… it is not in sync with the client.

      Hope this clears your doubt.

      Reply
  2. How do I change the refresh time after install ?
    I’m using raspbx you see, don’t want the phone to be out for too long.
    thanks for your great post

    Reply
    • Hey Philip,
      The temporary configuration file is then copied to /usr/local/etc/no-ip2.conf. You can go there and edit it.

      Reply
    • Hey Abhishek,

      Yeah you need port forwarding….since you will be communicating from an external network to your internal home network.

      Thanks
      Dinesh Auti

      Reply
  3. Hi,

    Thank you for sharing. It works at the first shot.
    anw, can you share how to change out user name and password?

    Thank you.

    Regards,
    Dimas

    Reply
    • Hi Dimas,

      In order to change the username & password, visit noip website and your account settings you should be able to do that. Once that is done, go to the configuration file and make the necessary changes or install the client again (after uninstalling the present one).

      Reply
  4. Hi. I am trying to do SSH from an external network. HTTP works fine for me from external network. But with SSH i am stuck. Can you help? I used putty on my windows 7

    Reply
  5. hi ,
    thnaku for sharing valuable knowledge !
    i want to use noip for sending image to another system via raspberry pi.
    can u plzz help me

    Reply
  6. Hi. I forgot to change the update time for noip client when installing it, so is there any way to change the update time for my noip?
    Thank you!

    Reply
  7. Hi,

    Is it possible to use this configuration with the webserver lighttpd? I mean, to access my index.html which is on my raspberry pi /var/wwww in any network I want?

    Reply
  8. Hi,
    I am not using a router but a wifi hot spot from my phone to get the pi connected to the internet, how can I address the pi while am not on the same network?

    Reply
  9. I am trying to troublshoot a non working noip on my Pi Server. I have set up a web server on my Pi and I can load the index html page from a machine on the local LAN.
    Pi is a static IP wired to a local LAN Belkin router with port 80 forwarded to the Pi IP. The Belken router is wired to a Time Warner ARRIS cable modem/router with port 80 forwarded to the Belkin router.
    Noip dot com setup is mypihostmane.hopto.org with the Target IP of the ARRIS WAN IP.
    Noip2 on the Pi is running, verified with noip2 -S command. I can kill it with noip2 -K and I can change the refresh with noip2 -U.
    If I enter mypihostname.hopto.org as the URL I get a “Not Found” error.
    So how can I determine where it process is failing?

    Reply
    • In the NoIp dashboard check if your public IP is being changed and your host name is mapped correctly to your public IP. Also, maybe the port forwarding is not working correctly – check it again.

      Reply
  10. Noip dashboard info is correct for hostname and ARRIS router WAN IP. Reconfigued the static IP for the pi and took it off the Belkin router and plugged into the ARRIS router. Reconfigured noip2 and verified the status after swiching to the ARRIS router. Everything seems to work same as before. I can load the web page if I put the pi IP in the URL, but get a time out if I use the hostname.hopto.org in the URL. Reconfigured eveything and put it back on the Belkin router.

    Reply

Leave a Comment.