I decided to create a collection of CLI programs for fetching information about the system, local network addresse, public IP adresse(s), and more using mainly the libraries that are coming by default with Python.
Fetch system information.
Get the local IP address.
Get the public IP address. Supports both IPv4 and IPv6 addresses.
usage: publicip [-h] [-4] [-6] [-a] [--version]
Public IP
options:
-h, --help show this help message and exit
-4, --ipv4 show IPv4
-6, --ipv6 show IPv6
-a, --all show all IPs
--version show program version
Get the hostname of any device on the local network by its IP address.