Closed felixmondelo closed 4 years ago
Hi @felixmondelo,
It looks like the issue with the addressing (MQTT client in the gateway works with IPv4, but by default the Windows 10 uses IPv6). To check the issue, you can run the following command:
ping localhost in the command line. Probably you will see something like:
Reply from ::1: time<1ms
- it means that you have IPv6 higher priority than IPv4.
To sole this issue - you should set the value of the host (in MQTT configuration json file) to 127.0.0.1
Please try and let me know about the results.
Hi @zbeacon ,
I have changed in mqtt.json the host value to 127.0.0.1, but the problem is the same: [Errno 99] Cannot assign requested address
Thanks and regards.
Hi @zbeacon,
Problem resolved, I assign IPv4 address. In command line, with ipconfig command, I get the IPv4 address:
IPv4 Address. . . . . . . . . . . : 10.1.6.5
And now it works!!
Thanks and regards.
Thanks for the information, we will consider it to solve issues like this.
Describe the issue I have configured an IoT Gateway on the Thingsboard portal, also I have installed a Gateway on a remote server.
On Gateway server, I have installed Mosquitto that is working ok. I configured tb_gateway.yaml with remote Thingsboard server and if I don't configure any connector, it connects perfect to the remote Thingsboard server.
Now I want to configure MQTT connector with my Mosquitto Broker, but when I start the gateway I get this error:
ERROR - [mqtt_connector.py] - mqtt_connector - 172 - [Errno 99] Cannot assign requested address"
Configuration (Attach your configuration file) Notate: Remove Access token from file if you wanna attach tb_gateway.yaml
tb_gateway.yaml.txt mqtt.json.txt
Connector name (If you need help with some connector/converter): MQTT Connector
Error traceback (If it was raised):
Versions (please complete the following information):