Hi,
for what you want to use the WAN-IP information?
In IP -> Cloud you can find the Mikrotik-DNS Name and your WAN-IP - maybe this will help you out.
Oh, yes, I should have said. I have a dual WAN setup, with a remove VPN. So the MikroTik can establish a VPN connection regardless of which WAN connection is connected. But it's giving some problems so I want to write a script to change the routes, depending on which WAN is connected. Pinging the LTE router (192.168.8.1) and ADSL router (192.168.4.3) doesn't help much.
So, how do I get that IP address using a script?
And, how do I know chih gateway updated the DNS entry?