Read the statement by Michael Teeuw here.
MMM-IFTTT: curl: (7) failed to connect to [external ip] port 8080: connection refused
-
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
-
@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. -
@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 settingto 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
-
@sdetweil You brilliant person!
Solved and many thanks.
Made a total rooky mistake to not allow outside comm through the config.js file.