MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-IFTTT: curl: (7) failed to connect to [external ip] port 8080: connection refused

    Scheduled Pinned Locked Moved Solved Troubleshooting
    iftttconnection refusedport forward
    4 Posts 3 Posters 3.9k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W Offline
      White Hawk
      last edited by

      Hi
      I am trying to add IFTTT to Magic Mirror’s modules.

      When I test my connection with localhost it works, but as soon as I test my connection with my static external IP in CLI, I get: “curl: (7) failed to connect to [external ip] port 8080: connection refused”.

      IFTTT’s error is: “Action failure message: Error: Error: connect ECONNREFUSED [External IP]:8080. Unable to make web request to http://[External IP]:8080/IFTTT”

      The test script I am running is based on the documentation:
      curl -X POST -H “Content-Type: application/json”
      -d ‘{“message”: “Your pizza is ready!”}’
      “http://[external IP]:8080/IFTTT”

      I have forwarded port 8080 on my router internal and external to the Magic Mirror’s IP address.

      Am I missing something?

      Thanks in advance

      M S 2 Replies Last reply Reply Quote 0
      • M Offline
        MMRIZE @White Hawk
        last edited by

        @White-Hawk
        Your MM is visible out of network?
        For example, Try to access your MM of home network through external IP from your office.
        I think your port forwarding might have been wrong.

        1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @White Hawk
          last edited by sdetweil

          @White-Hawk what is your mm address and ipWhitelist settings in config.js

          address:localhost means ONLY apps INSIDE the same machine can access mm
          ipWhitelist is also set to allow only localhost setting

          to test

          use your phone or your normal computer to access the mm IP:port

          in addition, some routers have a problem when the IP address used on the inside is the address for the outside… have had that problem off and on since I started doing it in 2010

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          W 1 Reply Last reply Reply Quote 0
          • W Offline
            White Hawk @sdetweil
            last edited by

            @sdetweil You brilliant person!

            Solved and many thanks.

            Made a total rooky mistake to not allow outside comm through the config.js file.

            1 Reply Last reply Reply Quote 1
            • 1 / 1
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy