MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

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

    Troubleshooting
    ifttt connection refused port forward
    3
    4
    3281
    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
      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
        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
          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

          Create a working config
          How to add modules

          W 1 Reply Last reply Reply Quote 0
          • W
            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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy