2

I downloaded the noip client, installed it with sudo make install and configured my No-IP credentials. Seems to work fine. But the Pi has a local IPv4 IP address (e.g 192.168.9.1 etc). How does the Raspberry know the IP adress of the router?

Do I have to configure DDNS on my router instead? But if so, why none of the tutorials (I used this one in German) mentions anything but port forwarding?

2

You can use the No-IP client on the Raspberry Pi, there is no need to configure DDNS on the router.


Your Raspberry Pi does not need to know the router's IP address, it's your Dynamic DNS provider who needs to know it.

No-IP client sends a web request containing your device ID (credentials) to the DDNS service provider. The request is relayed using your router and as NAT (Network Address Translation) takes place, the Pi's local IP address in the packet is replaced with the router's public one.

The Dynamic DNS provider sees the request as coming from your router's public IP address and updates the record for the device to this address.


Now, to reach a service on your Raspberry Pi using the Dynamic DNS address, other devices (clients) on the internet will first ask the DDNS provider for the IP address for your device and domain, and it will respond with your router's address.

The client will then contact your router and in this stage, the router must forward incoming packets to the Raspberry Pi. That's what you need port forwarding settings for.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.