mosquitto icon indicating copy to clipboard operation
mosquitto copied to clipboard

Unable to connect to wss host return 15 lookup error

Open kramis-1 opened this issue 3 years ago • 2 comments

I have used the develop version 2.1.0 of mosquitto and built using the with_websockets option as yes. I have made a libmosquito.so.1 and used it to compile with my client.

Pseudo code Host= wss://test.com Port=5222 Username=123 Password=123 Clientid=1234 Im trying the insecure option set to true for now

I was able to create the client but on creating a connect request it returns lookup error 15 . Please assist me in this regard. Im running the client on a Linux based system. Please revert in this thread for any more details. Thank you

kramis-1 avatar Jan 06 '23 03:01 kramis-1

A lookup error suggests there is a DNS problem.

ralight avatar Apr 08 '23 22:04 ralight

yes,when there is no network, and only execute mosquitto_connect_async once, your code will not reconnect; that is a bug.

xiaoyaodingchunqiu avatar May 13 '24 01:05 xiaoyaodingchunqiu