Allow specifying host and port in connect()