allow to connect to network ip but not loopback. Fixes #7403