Gets the connection for this proxy.
If the proxy does not yet have an established connection, it first attempts to create a connection.