I want two Arduino Yuns in different private networks to communicate, i.e., behind two distinct routers of which at least one does not have dynamic DNS, so its external IP may change from time to time.
To be reachable, this Yun could forward its router's external IP to the other Yun which has a fixed DNS name. But for this to work, it must be able to determine its router's external IP.
How can the Yun find out that the external IP of the router has changed? The Yun will be runnning all the time.
If the external router IP has changed (i.e., my Fritz.Box disconnects in the night and may receive a different IP when it reconnects), how can the Yun determine the new external IP?
If this is not the right place to ask, I'm happy for pointers to somewhere else (Server Fault SE forum?).
noip.com
(free for basic service) and do the publishing of the new IP within the FritzBox. On the Arduino use just the hostname you specify at the dyndns service.