only register ip if there is one