TolpuddleSartre: Huh?
Isn't "ip" a reference to an IPAdress object which was created inside the function?