Changed connect method to tuple (host, port)