Console script to find your external IP address
Whatip is a simple script that shows your IP. It queries well known online IP-detection web services for that information.
pip3 install whatip
Also you can copy whatip.py file and place it into $PATH. Do not forget to set executable flag.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.