Close

Results 1 to 2 of 2
  1. #1
    DF Jedi hilljd00's Avatar
    Join Date
    Dec 2004
    Location
    Earth
    Posts
    3,798
    Thanks
    1,316
    Thanked:        358
    Karma Level
    339

    Help MQTT + Raspberry Pi

    Hi there I have installed HiveMQ but I cannot get it to work using localhost/127.0.0.1. It is giving me the error message of "Connect failed: AMQJS000I Socket closed.I cannot figure out how to fix this?

    Has anyone got any ideas? Can you please help me?

  2. #2
    DF Super Moderator Over Carl's Avatar
    Join Date
    Apr 2006
    Location
    London
    Posts
    13,120
    Thanks
    3,938
    Thanked:        1,681
    Karma Level
    1277

    Default Re: MQTT + Raspberry Pi

    I've never done anything with the PI or MQTT/HiveMQ, but here is my first thought:

    I'm guessing you are running HiveMQ on the Pi, but it doesn't seem to work because of the error you mentioned?

    If so, in a terminal prompt type ping 127.0.0.1

    After this try ping localhost

    If that doesn't work, try using nslookup to see if localhost resolves to 127.0.0.1

    Basically most kit is configured to treat localhost/127.0.0.1 as loopback - i.e. to be sent to the same host that is sending them rather than another device on the network.

    Sounds like this is broken for some particular reason although I have to say I have no idea what the cause may be and how to fix it. If pings are working, but your app isn't working, then maybe a firewalling issue, or your sw hasn't been bound to the correct interface?

Similar Threads

  1. SDR on Raspberry Pi
    By c0axial in forum Home Audio/Video, Electronic Toys & Gadgets
    Replies: 2
    Last Post: 18th October 2017, 05:52 PM
  2. Raspberry Pi Zero W
    By koola2 in forum Raspberry Pi
    Replies: 9
    Last Post: 20th March 2017, 11:59 AM
  3. [HELP] MQTT?
    By hilljd00 in forum Raspberry Pi
    Replies: 8
    Last Post: 1st July 2015, 09:00 AM
  4. [FOR SALE] Raspberry Pi
    By Ashley in forum Buy, Sell and Trade
    Replies: 8
    Last Post: 19th December 2012, 12:21 PM
  5. Raspberry Pi FAQ
    By Raptor in forum Raspberry Pi
    Replies: 0
    Last Post: 15th June 2012, 06:26 PM

Social Networking Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •