I tried this solution tonight on my Arch Linux system. I have MQTT broker running from the Mosquitto package. The connection is always getting refused though by my machine.
dev:1812021-03-07 08:34:07.562 pm warnTTS Via MQTT : Unable to connect to server (32103) - java.net.ConnectException: Connection refused (Connection refused)
dev:1812021-03-07 08:34:07.558 pm warnTTS Via MQTT : Error when trying to connect to 192.168.1.170:1883
I was able to get this to connect though to my Android running a broker as a test, with no issues. (obviously no Hubitat python things which are in your GitHub) My Linux box does not have any internal port blocking and it should be able to communicate with no issues. I have verified that Port 1833 is being listened to with the netstat command:
netstat -anp |grep 1883
tcp 0 0 127.0.0.1:1883 0.0.0.0:* LISTEN 7178/mosquitto
tcp 0 0 127.0.0.1:35907 127.0.0.1:1883 ESTABLISHED 22451/python3
tcp 0 0 127.0.0.1:1883 127.0.0.1:35907 ESTABLISHED 7178/mosquitto
tcp 0 0 127.0.0.1:1883 127.0.0.1:60562 TIME_WAIT -
tcp6 0 0 ::1:1883 :::* LISTEN 7178/mosquitto
Do you have any ideas by chance on this?