Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] Connection refused on localhost

sorted it out... was running my client from inside a docker container and my mqtt broker on my local host... had some docker networking issues.  :D

cheers

On Fri, Dec 16, 2016 at 3:01 PM, Aaron Chappelle <achappelle@xxxxxxxxx> wrote:
I'm getting a "Connection refused" from my localhost broker when using the mosquitto client library.  I've tried "localhost" and "127.0.0.1", neither work.  I can connect fine using the mosquitto_sub client with both.  

My code can connect and work fine with remote brokers... just not my localhost broker.  I'm not using TLS, or any auth (as far as I know).

Thoughts?




Back to the top