fixed error in getLocalIp