Break into two files:

 - importable getter ("get_ip")
 - command line interface ("cli")