cloudflare-ddns-updater icon indicating copy to clipboard operation
cloudflare-ddns-updater copied to clipboard

Possibility to take IP from another gateway

Open denisjoshua opened this issue 1 year ago • 2 comments

Hi there, at my home I have 2 connections. (ADSL and 5G)

I want to run the script in a server, but I want to take the IP from another router (gateway). Is this possible please ?

Thanks in advance Denis

denisjoshua avatar Sep 15 '23 06:09 denisjoshua

Here are two ways to get the IP that way:

ifstatus wan | jsonfilter -e '@["ipv4-address"][0].address'

ip route get 1.2.3.4 | awk '{print $7}'

user8446 avatar Jun 27 '24 14:06 user8446

Thanks a lot :-)

denisjoshua avatar Jun 27 '24 17:06 denisjoshua