macOS / binaries /

ip2cc

/usr/bin/ip2cc
Lookup country from IP address or hostname

ip2cc is a program to lookup countries of IP addresses. ip2cc has two modes: interactive and non-interactive. Interactive mode allows the user to query more than one hostname. Non-interactive mode is used to print just the country for a single host.

source: man