Add IP to registration call

This was missing from my fix for #37. Registration is when the IP get set.