function returning an ip address

arduino_new:
you code will work until it doesn't.

the object "ip" becomes undefined once you exist the function.

But the value is returned by the function.