Add tests for listening on ips and connection to ip addresses