I have the module mentioned below and I need to implement the following case: If the Device\'s public ip is not inside the internal_ips array, the apiUrl variable is "h