A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
http connection denied despite open whiteList
-
Hi,
I tried to connect to my MM via Firefox on Port 8080. By it doesn´t works. I got the error “connection refused”.
When I tried to connect via telnet I get the error “connection error”.
But my whiteList is completely open.My config is
var config = { address: "localhost", // Address to listen on, can be: // - "localhost", "127.0.0.1", "::1" to listen on loopback interface // - another specific IPv4/6 to listen on a specific interface // - "0.0.0.0", "::" to listen on any interface // Default, when address config is left out or empty, is "localhost" electronOptions: { webPreferences: { webviewTag: true } }, port: 8080, basePath: "/", // The URL path where MagicMirror is hosted. If you are using a Reverse proxy // you must set the sub path here. basePath must end with a / ipWhitelist: [], //**** Set [] to allow all IP addresses // or add a specific IPv4 of 192.168.1.5 : // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"], // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format : // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"], useHttps: false, // Support HTTPS or not, default "false" will use HTTP httpsPrivateKey: "", // HTTPS private key path, only require when useHttps is true httpsCertificate: "", // HTTPS Certificate path, only require when useHttps is true language: "de", logLevel: ["INFO", "LOG", "WARN", "ERROR"], timeFormat: 24,
So I allow all IPs.
My second MM has the same whiteList. And I can connect.
It would be fine, when you have some good ideas for me to help.
Thank you in advance.
Lars -
@klinge you are tying it to localhost only? If you do that, you can’t connect to it, it should be 0.0.0.0 or something like that?
-
@klinge localhost means only apps INSIDE the mm system can connect.
-
@fribse That´s it! I thought there must be something simple. I changed it to 0.0.0.0 and it works.
Thanks to both of you for your help.