HI,
I’m trying to the MQTT Brocker from an my Windows PC with the simple-skill.py code provided in the Rhasspy tutorial (Tutorials - Rhasspy).
I run Rhasspy on one device with MQTT external configuration with localhost and port 1883.
On the same device, I run mosquitto on port 1883.
Successful connection between Rhasspy and the MQTT brocker :
On my PC, I launch the simple-skill.py modifying just the host in the client.connect() function.
I receive the following error and don’t know how to resolve it :
Traceback (most recent call last):
File "D:/Dev/main.py", line 45, in <module>
main()
File "D:/Dev/main.py", line 40, in main
client.connect("172.17.147.94", 1883)
File "D:\Dev\\py-env\lib\site-packages\paho\mqtt\client.py", line 914, in connect
return self.reconnect()
File "D:\Dev\py-env\lib\site-packages\paho\mqtt\client.py", line 1044, in reconnect
sock = self._create_socket_connection()
File "D:\Dev\py-env\lib\site-packages\paho\mqtt\client.py", line 3685, in _create_socket_connection
return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source)
File "D:\Python38\lib\socket.py", line 808, in create_connection
raise err
File "D:\Python38\lib\socket.py", line 796, in create_connection
sock.connect(sa)
ConnectionRefusedError: [WinError 10061] Aucune connexion n’a pu être établie car l’ordinateur cible l’a expressément refusée