I\'m using the Java paho library to communicate to an mqtt broker. Using the code below I\'m able to connect fine.
MqttClient publisher = new MqttClient("tcp