function returning an ip address

arduino_new:
I think you have it flipped. it is OK if it is dynamically allocated.

Huh?