To start process of DNS resolution, establishing TCP connection and establishing XMPP stream you need to call:
client.login();