Read the statement by Michael Teeuw here.
ipWhitelist - still not working
-
I’m using MM2 (latest) with pm2.
in my config.js I tried everything, even this latest one:var config = { port: 8080, language: 'de', timeFormat: 24, units: 'metric', ipWhitelist: [],
in startup I get this in the log:
(...) All module helpers loaded. Starting server on port 8080 ... You're using a full whitelist configuration to allow for all IPs Server started ... (...)
I have no iptables in place:
pi@MagicMirror2:~ $ sudo iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination pi@MagicMirror2:~ $
stil, if I try to reach the MagicMirror from my Laptop, I see the
connection refused
message:
I can reach the Pi without problems on SSH-port and even send him MQTT-updates. So I assume, there’s no issue with iptables (as seen above, it’s all open).
Is there anywhere, I can have a look on to solve this? -
oh. not exactly. After some time now, it works! Don’t know, what it took some time, aber now it works!
-
@binderth
Try0.0.0.0/0
for IpWhiteList. -
@Sean said in ipWhitelist - still not working:
0.0.0.0/0
same error on the Laptop.
Still no change with the netstat:pi@MagicMirror2:~ $ sudo netstat -lnpt Aktive Internetverbindungen (Nur Server) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 441/sshd tcp 0 0 0.0.0.0:1883 0.0.0.0:* LISTEN 462/mosquitto tcp 0 0 0.0.0.0:5900 0.0.0.0:* LISTEN 490/vncserver-x11-c tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN 909/electron.js
-
Add
address: "0.0.0.0",
to your config, outside your whitelist:var config = { port: 8080, address: "0.0.0.0", ipWhitelist: [], // Set [] to allow all IP addresses. language: "en", timeFormat: 12, units: "imperial",
-
@Mykle1 no Change here… :(
-
oh. not exactly. After some time now, it works! Don’t know, what it took some time, aber now it works!
-
@Mykle1 THAAANKS! ;) run in the same issue after the latest update
-
@schlachtkreuzer6 said in ipWhitelist - still not working:
@Mykle1 THAAANKS! ;) run in the same issue after the latest update
You’re welcome, mate! Enjoy!
-
@Mykle1 Thank you! This fixed a problem I was having with openHAB sending sendHttpGetRequest.
-
Nice!