Fixes #7263 - make sure the ip address from interfaces is valid