Many clients and servers send whitespace in order to make sure that the TCP/IP connection is still active. Smack and Wildfire use this technique, in fact. If you want to do a more detailed test, you could send an IQ version request to the server (I use “example.com” below) and make sure you get a reply: