MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    ipWhitelist - still not working

    Scheduled Pinned Locked Moved Solved Troubleshooting
    10 Posts 5 Posters 4.5k Views 5 Watching
    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.
    • binderthB Offline
      binderth
      last edited by binderth

      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:
      0_1510135311872_3eee7549-ea75-42b6-b4ae-9f0d3be55879-image.png

      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?

      ? 1 Reply Last reply Reply Quote 0
      • binderthB Offline
        binderth
        last edited by

        oh. not exactly. After some time now, it works! Don’t know, what it took some time, aber now it works!

        1 Reply Last reply Reply Quote 0
        • ? Offline
          A Former User @binderth
          last edited by

          @binderth
          Try 0.0.0.0/0 for IpWhiteList.

          binderthB 1 Reply Last reply Reply Quote 0
          • binderthB Offline
            binderth @Guest
            last edited by

            @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
            
            Mykle1M 1 Reply Last reply Reply Quote 0
            • Mykle1M Offline
              Mykle1 Project Sponsor Module Developer @binderth
              last edited by

              @binderth

              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",
              

              Create a working config
              How to add modules

              binderthB schlachtkreuzer6S 2 Replies Last reply Reply Quote 1
              • binderthB Offline
                binderth @Mykle1
                last edited by

                @Mykle1 no Change here… :(

                1 Reply Last reply Reply Quote 0
                • binderthB Offline
                  binderth
                  last edited by

                  oh. not exactly. After some time now, it works! Don’t know, what it took some time, aber now it works!

                  1 Reply Last reply Reply Quote 0
                  • schlachtkreuzer6S Offline
                    schlachtkreuzer6 @Mykle1
                    last edited by

                    @Mykle1 THAAANKS! ;) run in the same issue after the latest update

                    Mykle1M 1 Reply Last reply Reply Quote 0
                    • Mykle1M Offline
                      Mykle1 Project Sponsor Module Developer @schlachtkreuzer6
                      last edited by

                      @schlachtkreuzer6 said in ipWhitelist - still not working:

                      @Mykle1 THAAANKS! ;) run in the same issue after the latest update

                      You’re welcome, mate! Enjoy!

                      Create a working config
                      How to add modules

                      S 1 Reply Last reply Reply Quote 0
                      • S Offline
                        SimtechBen @Mykle1
                        last edited by

                        @Mykle1 Thank you! This fixed a problem I was having with openHAB sending sendHttpGetRequest.

                        Mykle1M 1 Reply Last reply Reply Quote 1
                        • Mykle1M Offline
                          Mykle1 Project Sponsor Module Developer @SimtechBen
                          last edited by

                          @SimtechBen

                          Nice!

                          Create a working config
                          How to add modules

                          1 Reply Last reply Reply Quote 0
                          • 1 / 1
                          • First post
                            Last post
                          Enjoying MagicMirror? Please consider a donation!
                          MagicMirror created by Michael Teeuw.
                          Forum managed by Sam, technical setup by Karsten.
                          This forum is using NodeBB as its core | Contributors
                          Contact | Privacy Policy