Add ability to specify host, port, and path in connect() method