First cut of get ip script
Still a mess, but semi-works
Merge branch 'get-ip'

* get-ip:
  Still a mess, but semi-works
  First cut of get ip script