TERMINAL
Use curl to get your IP address directly from a terminal:
$ curl -sL v4.iprout.ovh
$ curl -sL v6.iprout.ovh
LAZY MODE
If you are lazy like me, make a small Bash script in /usr/bin:
#!/bin/bash
ipv4=$(curl -sL v4.iprout.ovh)
ipv6=$(curl -sL v6.iprout.ovh)
echo -e "IPv4 : $ipv4\nIPv6 : $ipv6"
INFO
privacy: NGINX logging is disabled on both IPv4 and IPv6 subdomains because I do not care about your IP address.