added functionality to getlocalIP when device has multiple ips (needs to be completed with a popup for the user to select ip)