First working version of the module, gets global IP and all local IPs.