Update the add_ip method.

Return the IP address from the API. Tests working.