IP
You can retrieve your IP with open ip.theadam.eu/ip.php in a single line. You can use it in BASH scripts (e.g. DuckDNS update IPv4 and IPv6 in a single query behind NAT). You can use cURL or WGET (optional with -4 or -6 to get IPv6 or IPv6).
- wget -qO - https://ip.theadam.eu/ip.php
- curl -s https://ip.theadam.eu/ip.php
You can store the value in variable or write to a file.