Client connects to XMPP server via TCP socket