Whether you want to host a server on your Raspberry Pi (and share it with the world) or just use No-IP to overcome the fact that you don’t have a static public IP address with your ISP, this article is for you.
In my case I don’t have a static IP address, so I often use this service to link a domain name to my current IP.
Let’s see how you can do the same on your side.
The No-IP-Client (UCD) source files for building this tool on Linux are available.
So you can install it as usual by compiling it on your Pi Framboise.
Then there are several configuration options and port forwarding must be enabled on the router.
In this tutorial I will explain what No-IP is, how to install it and especially how to configure your Pi Framboise and the network to make it work.
What is the absence of IP?
alt= width=343 height=125 data-ezsrc=http://server.digimetriq.com/wp-content/uploads/2020/12/How-to-Install-and-Use-No-IP-on-Raspberry-Pi-Dynamic.jpg data-ez= />
If you’re here, you probably already know what the No-IP is and what it does, so I’ll keep it short.
No-IP is a provider of dynamic DNS services. The idea is to link a domain name (or a subdomain in a free plan) to your IP address.
This is especially useful if your public IP address changes regularly. This allows you to access your home server from anywhere, even if you do not have a static IP address.
Course Raspberry Pi
Go to the next step.
I’m here to help you get started with your Raspberry piss and learn all the necessary skills in the right order.
No-IP offers two different services at different prices:
- Free plan: Probably the one you’re interested in. Ideal for hosting a basic service such as a website, SSH access, Samba share or FTP server.
You can select a subdomain (for example: raspberrytips.hopto.org) and link it to your IP address so that you can use this subdomain to access the remote service.
- Improved plan : It’s a paid service, but you can define multiple hostnames (20+, I think), have more domain name options, and don’t need advertising or hostname validation for 30 days.
Yes, with the free plan you have to login every 30 days to reactivate the hostname.
I believe there is also a comprehensive plan that allows you to use your domain name with full functionality.
For example, I know that some of you have tried to use a free non-IP plan to host a mail server. In fact, you can’t, because you can’t change the MX option in the DNS configuration of the free plan.
Basically, you should start with the free DDNS service, and you can always find out later if you need more options to do what you want.
How does it work?
The idea of this architecture is to use the No-IP service to obtain a hostname that is always sent to your public IP address.
Thanks to this service provider, you can place any service (with or without raspberry guns) in your home.
If you need a visual image to understand it better, this is how it works: alt=width=716 height=198 data-ezsrc=http://server.digimetriq.com/wp-content/uploads/2020/12/1609239514_275_How-to-Install-and-Use-No-IP-on-Raspberry-Pi-Dynamic.jpg data-ez= />
The remote client can be located anywhere in the world and has access to the hostname created on No-IP (we’ll see how to create it right after that).
Your home router will redirect traffic to the Raspberry Pi or to another host on the network, depending on what you want to do.
To set everything up there are 3 basic steps that I will explain in this tutorial:
- Create your account and choose a hostname
- Download and install the No-IP client on your Raspberry Pi
- Configure port forwarding on your router to redirect all access to your host.
If it is not yet clear, please leave a comment below and I will try to explain it differently.
Creating an account
Whatever your goal, the first step is to create an account and choose a hostname on PIN.com :
- Go to the No-IP page
- Click on the Save button in the top menu
- Fill in the form with your email address and password and choose a host name:
You may receive a warning if you use special characters in your password:
Dynamic DNS-enabled devices such as routers, cameras or DVRs often do not allow special characters and limit the length of Dynamic DNS passwords to
. I have several of these devices and they work well on my Raspberry Pi, so keep your password strong.
- Click on the Free registration button to create your account.
- You must then confirm your e-mail address by clicking :
alt= width=700 height=336 data-ezsrc=http://server.digimetriq.com/wp-content/uploads/2020/12/1609239516_553_How-to-Install-and-Use-No-IP-on-Raspberry-Pi-Dynamic.jpg data-ez= />.
- Click on the Confirm Account button.
The page appears and asks you to download it. You can skip this step for now, because you probably don’t need it for the Raspberry Pi.
We’ll see about that later.
- Then go to your account.
You need to enter a username and select a security question, otherwise it won’t work:
alt=width=700 height=209 data-ezsrc=http://server.digimetriq.com/wp-content/uploads/2020/12/1609239516_150_How-to-Install-and-Use-No-IP-on-Raspberry-Pi-Dynamic.jpg data-ez= />
Click Add Now and do it right away.
- Your account also indicates that the host name has not yet been updated.
alt=ширина=500 height=158 data-ezsrc=http://server.digimetriq.com/wp-content/uploads/2020/12/1609239517_297_How-to-Install-and-Use-No-IP-on-Raspberry-Pi-Dynamic.jpg data-ez= />
Can work even if the default IP address is the address you used to create the account:
alt=width=600 height=113 data-ezsrc=http://server.digimetriq.com/wp-content/uploads/2020/12/1609239517_331_How-to-Install-and-Use-No-IP-on-Raspberry-Pi-Dynamic.jpg data-ez= />
We need to configure the client to synchronize your IP address and remove this warning (this is step 2 of my previous message).
There are several possibilities. You can install it on your PC or even on a router (I use this method, by the way). But today we’re going to see how we can install it on a Raspberry Pi.
Here we go.
Raspberry Anti-IP Installation Guide
Installation and configuration of Raspberry Pi OS
I’m gonna do this tutorial on Raspberry’s Pi OS (Buster). I don’t think it should make much difference if you use a different operating system, but just so you know.
So the first step to get started is to install the Pi OS Raspberry on your device.
I have a special tutorial that explains how to do it right, so I won’t repeat it here. If at any time you need help, don’t forget to read this article here.
After the basic configuration you need to set a secure password (especially if you want to forward the SSH port), but it’s a good habit anyway.
Then, update your system to make sure there are no open vulnerabilities:
sudo apt update
sudo apt update
You may also need to install the service you want to share with No-IP online.
In this tutorial I will do some tests with Apache, so:
sudo apt install apache2
Learn more about how to install a webserver on your Pi Raspberry.
Mastering the Pi raspberry in 30 days
Download the ebook.
Discover the secrets of the Raspberry Pipe in a 30 day challenge.
Download and install No-IP on Raspberry Pi
Let’s see how to install the No-IP client on the Raspberry Pi!
I’m on Raspberry Pi OS Lite, if you’re on Raspberry Pi OS Lite, you need to connect via SSH (more details here).
On the Raspberry Pi operating system with a desktop computer you can use the terminal directly.
Anyway, here’s the installation procedure:
- You need to select a folder to download and compile the PIN code.
I do it in my personal folder, but it doesn’t matter where you download it.
- Download the archive of :
- Unpack the files:
tar -zxvf noip-duc-linux.tar.gz
- Change to the newly created folder:
The version number in the folder name may change, so make sure you use the one that matches your extracted files.
Tip: cd noip + TAB executes the command automatically.
- Once in this folder, compile and install No-IP with the following commands:
sudo make install
On my Raspberry Pi 4 the installation was fast, so whatever your device is, it should take a few seconds.
During installation, you will be asked to answer a number of questions about the configuration of the service.
Of course, you will need to enter an email address and password to link the device to your account, as well as the update frequency (how often you want the customer to update the IP address on the PIN code).
This is what it looks like: alt=width=600 height=278 data-ezsrc=http://server.digimetriq.com/wp-content/uploads/2020/12/1609239518_136_How-to-Install-and-Use-No-IP-on-Raspberry-Pi-Dynamic.jpg data-ez= />
Oh, by the way: The update interval is set in minutes.
I haven’t tested it yet because I’m not interested, but you can define an action to perform with each update (the script can be useful if you need to update something in your hosting service every time the public IP address changes).
Once this step has been completed, your IP address should be updated on the website and the second step should be completed – bravo.
If your goal was simply to link a domain name to your IP address, then congratulations, you did it.
Pay attention: For example, I use it to authorize my IP address on certain administrative websites. Since I don’t have a static IP address, I can’t filter access based on my current IP, but I can use the hostname for the same thing.
For most of you, I’m assuming you’d like to dedicate a service to your Raspberry Pi. So you need to see the last part of this tutorial!
After a few hours of use I noticed some problems with the no-IP client on the Raspberry Pi.
In this article I will show you how to repair it and how to configure port forwarding.
Change of non-IP configuration
When installing No-IP, you can select several things in the wizard, but if something doesn’t work or if you want to change something, you can’t restart the installation.
So if you need to update something (like the password or update interval), here are some commands you can use.
sudo noip2If the following options are available :
- -C : Create a new configuration (No-IP must be stopped first).
- -c: use another configuration file
- -S : Display of the current configuration
- -U : Changing the update interval
- -u-p: Update references
- -i: enforce a specific IP address
- -I : If you z. For example, if you have enabled Wi-Fi and Ethernet, you can specify the interface to use.
- -h: view all options (help)
I wanted z. B. Change the refresh rate of my tests to see if it works properly when switching from one connection to another.
So I did this:
sudo noip2 -U 5
5 is the minimum you can choose, the default is 30 minutes.
No-IP Autorun at startup
After rebooting I noticed that the IP address was not updated anymore.
The No-IP client is not started automatically at startup.
There are many ways to do this (this guide shows you how to do this with 4 different methods).
But I’ve decided on the simplest option:
- Open your crontab configuration:
sudo crontab -e
- Insert this line:
@ reboot /usr/local/bin/noip2
That’s it, No-IP now starts up automatically at startup.
Enable port forwarding from IPonwards
The last step is to configure your router or firewall to forward a port to the Raspberry Pi service.
Although your IP address is regularly updated in the configuration of the domain name, you do not have access to services on your Raspberry Pi.
To do this, you need to configure port forwarding on your internet router.
The configuration strongly depends on your ISP and your existing router.
So I’ll show you how it works in my case, but you probably don’t have the same hardware (at least if you’re not in France with the same ISP ^).
- Connect to your router’s IP address using a web browser.
The IP address depends on your ISP, you can probably find it by looking at your gateway if you don’t know it.
On a Pi Framboise (or other Linux system), you get it with:
alt= width=700 height=98 data-ezsrc=http://server.digimetriq.com/wp-content/uploads/2020/12/1609239519_504_How-to-Install-and-Use-No-IP-on-Raspberry-Pi-Dynamic.jpg data-ez= />
So, in my case, I open http://192.168.222.1.
- Make sure you use a static IP address on your Pi Raspberry.
There are two ways to do it:
- You can assign an IP address on your router.
In my case it is in Advanced Settings > DHCP
alt= width=600 height=80 data-ezsrc=http://server.digimetriq.com/wp-content/uploads/2020/12/1609239519_787_How-to-Install-and-Use-No-IP-on-Raspberry-Pi-Dynamic.jpg data-ez= />
This way my local IP address will always be the same (but not the public IP, of course).
- Or you can configure it directly on the Raspberry Pi, I have a tutorial for that.
- The last step is to forward the external port to the local device and the port.
In my case, I’d like to allow remote access to Apache.
So I have to reroute every gate to gate 80 on my Raspberry Pi.
I can do this under Advanced Settings > NAT.
alt=width=600 height=100 data-ezsrc=http://server.digimetriq.com/wp-content/uploads/2020/12/1609239520_200_How-to-Install-and-Use-No-IP-on-Raspberry-Pi-Dynamic.jpg data-ez= />
I now have access to my domain name: http://raspberrytips.hopto.org:1982, and it should redirect me to the standard Apache page.
I try this from my phone, disconnected from wifi (it doesn’t work if you’re on the same network), and yes, it works! alt=width=500 height=444 data-ezsrc=http://server.digimetriq.com/wp-content/uploads/2020/12/1609239521_21_How-to-Install-and-Use-No-IP-on-Raspberry-Pi-Dynamic.jpg data-ez= />
We hope you’ve found where to configure it on your specific router.
If you need help, don’t forget to consult your supplier’s website, where the necessary documents are usually available:
Now you know how to install No-IP on your Raspberry Pi, but even more important is how to configure it to work the way you want.
I hope you found this tutorial useful and that it will help you to start up or improve new projects.
By the way, if you want to host some services in your home, but not for everyone, another option is to install a VPN server on your Raspberry Pi (click on the link to find out how to do this easily).
It’s safer than opening a port on the Internet.
You can also view this message with some tips to improve the safety of your Pi Framboise.
Since this topic can be a little tricky for some of you, feel free to leave a comment below if you need more help at any time. I’ll do my best to help you.
noip2 force update,raspberry pi dynamic dns namecheap,raspberry pi ddclient,no-ip ubuntu autostart,raspberry pi no ip address,noip2 systemd,noip,what is my ip,uninstall no-ip raspberry pi,how to uninstall noip duc,how to stop noip2 service,no ip duc on raspberry,raspberry pi dyndns no ip,noip crontab,noip com in raspberry pi,dyndns raspberry pi,noip cgnat,tutorial raspberrypi,raspberry pi hardware tutorials,raspbian stretch autostart,raspberry pi init d,noip login,free dynamic dns,raspberry pi dynamic dns no-ip,noip raspberry pi autostart,raspberry pi no-ip dns,raspberry pi no-ip not updating