I have linux server running with public ip. I have set up mosquitto broker with the following commands.
apt-get install mosquitto apt-get install libmosquitto-dev apt-get install mosquitto-clients
My broker is running in linux server.I am listening on port 1883. It is working fine when I try to run this in the server with the following commands.
mosquitto_sub -h localhost -t "mqtt" -v mosquitto_pub -h localhost -t "mqtt" -m "Testing"
But it is not working from outside when I try to access this broker from home network. I am trying MQTTlens as a tool to test the broker.