-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't connect to local Mosquitto server #17
Comments
Please start homekit2mqtt with the |
And when I change a value:
|
hmm strange. and you double checked that your broker is really listening on loopback and port 1883? Can you do a test with |
|
this shows a successful connect via IPv6 Loopback (::1). Did you also test |
Yes. Same thing. |
hmmhmm. That's really strange, I have no idea why it doesn't connect to the MQTT broker. Perhaps it's worth a try to use the IP of an external interface with the -u option. Otherwise I guess we would have to check with tcpdump what's happening while the connection attempt |
I set the homekit MQTT to external IP. Didn't work. Turned on tcpdump on eth0, only came up with MQTT data exchanged between my test device and the server. No server-server communication was shown. Homekit bridge was set to external interface too. |
Jelimoore@Misc:~$ telnet 127.0.0.1 1883
|
I still must admit - I have no clue why it doesn't connect to the broker. I guess my next try would be to create a simple javascript that requires the mqtt.js module and does nothing more then calling connect and console.log on connect error and close event to track down if this is a general or a homekit2mqtt related issue. I never had any problems with mqtt.js connecting to the broker... |
feel free to reopen if you want further assistance |
Hello,
The Homekit2MQTT bridge will not connect to my local Mosquitto instance. I can sub and pub using the built-in mosquitto commands, but I cannot see anything coming from the homekit2mqtt bridge. Specified URL is "tcp://localhost:1883" but I have also tried "mqtt://127.0.0.1". Any help would be appreciated. Thanks.
The text was updated successfully, but these errors were encountered: