Fix non ssl connections, add support for ipv6 in config.