'My Router Internet IP is different from my public IP

I am running a ddns client on Ubuntu for Nextcloud server, however my ISP has done something to the router so internet IP showing in the router is different from my public IP which causes an issue when ddclient updates the IP of my domain.

I have tried to contact my ISP but they want me to pay a huge amount for a fixed IP.

Is there any solution for this?

My router model is HG8245Q2.

enter image description here

*PS: The IP shown in the image is just an example.

Note: I tried this on a another router model HG8245Q, and it gives me the same IP on both router and google. so no issue on the old router model.



Solution 1:[1]

The IP address you see in your router is just another internal IP address from private range 10.x.x.x

This means your router is not connected directly to the internet but to another subnet of your ISP. And only this subnet is connected to the internet over another router (with NAT) and this router has a public IP address.

This is standard behavior with most of ISP because they have limited count of public IP addresses. If you need public IP, you have to pay for it, change ISP who gives you one for free or try some edge case solution like rent VPS server and make VPN tunnel to your home router (this requires advanced networking skills)

Solution 2:[2]

Maybe DDNS comes in handy for you. You can opt for free DDNS services like DynDDNS or NoIP.

Steps [I personally prefer noip.com ]:

  1. Create a Free Account
  2. Choose a hostname(We can say a domain name pointing towards ur system IP)
  3. Download their desktop client(To sync your Dynamic IP with the hostname you selected)
  4. Boom it's done! Use that hostname instead of IP wherever needed, traffic will be redirected to your system. Just take care of port forwarding and firewall settings.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jakub Sko?epa
Solution 2 Varun Pawar