ipinfo

Tool for calculating and analyzing IP network information

brewmacoslinux
Try with needOr install directly
Source

About

Tool for calculation of IP networks

Commands

ipinfo

Examples

Get information about a specific IP address$ ipinfo 8.8.8.8
Calculate network details for a given CIDR block$ ipinfo 192.168.1.0/24
Display information about your own public IP address$ ipinfo