Read the statement by Michael Teeuw here.
ipWhitelist HowTo
-
@greda said in ipWhitelist HowTo:
ipWhitelist: [“127.0.0.1”, “:: ffff: 127.0.0.1”, “:: 1”, “0.0.0.0”]
u mean inside your home?
address: "0.0.0.0". ipWhitelist:[],
127.0.0.1 means ONLY from the same box as MM on it.
-
-
Ok thanks it 's good now.
-
Hi,
sorry, this is a very long thread I stumbled upon because I had the problem that my browser told me that I cannot connect to a server only instance of mm2. The terminal output gave me an “Access denied to IP address” and printed the ip address I configured in the ipWhitelist section of the config file according to the getting started section in the documentation and the comment in the config itself.
What I was doing was following this advice:
// 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"],
the ip rejected was 192.168.178.42, therefore I used first
"127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.178.42"
BUT I think I have to use (at least this is what makes it working)
"127.0.0.1", "::ffff:127.0.0.1", "::1", "192.168.178.42"
Does this make any sense to you?
Kind regards
Marco
-
@esamecar what is your address: setting?
to allow systems from OUTSIDE the MagicMirror hardware, you must use something OTHER than “localhost”
you can either use “0.0.0.0” , which means use any ip address on this machine to listen to requests
or the actual ip address (which can change )
useip addr
to get the address of the wifi or ethernet connected interface
THEN
you can fiddle with the whitelist …using the whitelist (IMHO) is really only useful in a commercial setting where someone in the office MIGHT scan for open IP addresses and try to connect to a range of ports…
in my house, noone is getting on my network unless I let them …
-
@sdetweil thanks for your answer
I was using “0.0.0.0” as ip addr already as advised in the documentation but could not pass the ipWhitelist section … omitting the “::ffff:” part helped. (Now everything is up and running.)
-
@esamecar ::FFFFFF is the ipv6 type filter
-
@sdetweil thanks, now I understand; so omitting that part completely makes sense in an ipv4 environment I guess.