I am trying to establish MQTT on Jetson and it gives me "Connection refused" error, while running python script which includes my broker IP and port. while checking netstats -at i can find only port 5900 and not 1883. How do I modify this on the config file? Can someone give a detailed steps to follow.
Verified the configuration file for the ufw firewall and re-installed ufw. Allowed access for all devices on port 1883. Successfully pinged the broker address through a Windows PC. Uninstalled and re-installed both Mosquitto and Paho on the Jetson. Confirmed the status of Paho by running a Python script, which worked as expected. Successfully established a publisher and subscriber on the Jetson, testing communication successfully.