[英]Cannot connect to local MQTT server (running on Windows 10) from docker instance
RabbitMQ server is running locally on Windows 10 and docker is running on it also. RabbitMQ 服务器在 Windows 10 上本地运行,docker 也在其上运行。 I'm running a device simulator on docker and it has to talk to local RabbitMQ server through MQTT.
我在 docker 上运行设备模拟器,它必须通过 MQTT 与本地 RabbitMQ 服务器通信。 It had been working but one day it stopped.
它一直在工作,但有一天它停止了。 Here is device logging -
这是设备日志记录-
mqtt-client.cpp:322 | Failed to connect to broker at 'xxx@xxx.xxxxxx.com/:1883': code=15, message='Lookup error.'
Keep in mind that from docker(latest version) calls have been made to local web server which has exact domain name -请记住,已从 docker(最新版本)调用具有确切域名的本地 web 服务器 -
https-commissioning-channel.cpp:81 | [HttpsCommissioningChannel] using token to contact bootstrap service at 'https://xxx.xxxxxx.com/apibst/alo/v1/bootstrap/device-info'
So you can see domain name has been resolved.这样就可以看到域名已经解析了。 For firewall configuration port is open on 1883 (consider it had been working).
防火墙配置端口在 1883 上打开(认为它一直在工作)。 RabbitMQ is running.
RabbitMQ 正在运行。
What might be the issue and what should I do to make the call go through?可能是什么问题,我应该怎么做才能通过 go 进行呼叫?
As per the comments xxx@xxx.xxxxxx.com/:1883
should not contain a slash ( xxx@xxx.xxxxxx.com:1883
) - see the URI Scheme .根据评论
xxx@xxx.xxxxxx.com/:1883
不应包含斜杠 ( xxx@xxx.xxxxxx.com:1883
) - 请参阅URI 方案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.