Alternative way determining the external IP-address

Hi,

IPFire already shows the external IP-address, in certain situations. In my case it’s not possible, because IPFire is set up behind a FritzBox 6591 cable and gets the IP-address from this router, which is e.g. 172.17.0.2.

Of course this is not the external one. Can I configure IPFire to request the correct address?

Michael

Request it for what reason?

If you are using our ddns client, it will automatically find out the address with help from an external server. Otherwise you would not need the external address I would say.

Thanks for your reply!

I indeed use the DDNS client but goal is to output the external IP address on my dashboard, which is currently exposing only the interal one.

Is there a shell command available that IPFire offers, maybe as part of the DDNS client, that I could execute and grab the external IP?

Hi,

curl -s https://api.ipify.org

?

Best,

Erik

2 Likes

/usr/bin/curl ipinfo.io/ip > /tmp/ip.log

2 Likes

Thanks to Erik and Paul. Both solutions work perfectly well!