def get_ip_address(self):
        """Get ip address from WDA.

        Returns:
            If no IP address has been found, otherwise return the IP address.
        """
        ios_status = self.driver.status()['ios']
        # If use modified WDA, try to get real wifi IP first.
        return ios_status.get('wifiIP', ios_status['ip'])
Get ip address from WDA.

        Returns:
            If no IP address has been found, otherwise return the IP address.
        
airtest/core/ios/ios.py