I'm try to publish my data via MQTT in C and I'm use the sample code of ( Paho MQTT C Client Library link [http://www.eclipse.org/paho/files/mqttdoc/MQTTClient/html/pubsync.html])

and after running code I'm getting Error that "connection failed return code -1 [ MQTTCLIENT_FAIL URE ]
---------------------------------------------------
I installed ActiveMQ broker in my system and testing with MQTTbox that is working...