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.

    Problem with ip whitelist

    Scheduled Pinned Locked Moved Troubleshooting
    13 Posts 5 Posters 9.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.
    • Mykle1M Offline
      Mykle1 Project Sponsor Module Developer @ottobot
      last edited by

      @ottobot

      Here’s mine. It works, if you care to give it a try

      var config = {
      	port: 8080,
      	ipWhitelist: ["::fff:0.0.0.0/1", "::fff:128.0.0.0/2", "::fff:192.0.0.0/3", 
      			"::fff:224.0.0.0/4", "127.0.0.1", "::ffff:127.0.0.1", "::1"], 
      

      Create a working config
      How to add modules

      1 Reply Last reply Reply Quote 1
      • O Offline
        ottobot
        last edited by

        Still no dice. It’s weird. Literally nothing changed config wise. Just the SD card. The mirror works, and I can get to it via ssh. For some reason though I can’t get to it in a browser from any other computer on my network.

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

          It may have been setup as a new device on your network with a different IP address due to the clean install.

          For example, if you were previously previewing the mirror at 192.168.1.2:8080, it could have been reassigned to something like 192.168.1.7:8080.

          Check your router LAN settings to see what IP address has been assigned to it.

          O 1 Reply Last reply Reply Quote 0
          • CatoC Offline
            Cato Module Developer
            last edited by

            I’ve noticed that if there is an error in the config.js, I’ll get the an access denied error.

            Have you checked the logs? Try connecting using SSH and run something like pm2 restart mm | pm2 logs mm and watch the log carefully. If it really is an access error, the log will tell you.

            O 1 Reply Last reply Reply Quote 0
            • O Offline
              ottobot @Guest
              last edited by

              @leadfarmer router has the address reserved

              1 Reply Last reply Reply Quote 0
              • O Offline
                ottobot @Cato
                last edited by

                @Cato I’m running it on a zero, so no pm2 sadly. I’m going to try another fresh install on another SD card on another zero when I get home from work today and see if I can reproduce it or if it’s just a weird hiccup.

                R 1 Reply Last reply Reply Quote 0
                • R Offline
                  roramirez Core Contributors @ottobot
                  last edited by

                  If you have troubles with range, IP, etc… Can set ipWhitelist: [] to allow all IP addresses.

                  Warning, this enables from everywhere (on your net) have access.

                  Easy module development with MagicMirror Module Template

                  CatoC O Mykle1M 3 Replies Last reply Reply Quote 3
                  • CatoC Offline
                    Cato Module Developer @roramirez
                    last edited by

                    @roramirez Cool, didn’t know that! :)

                    1 Reply Last reply Reply Quote 0
                    • O Offline
                      ottobot @roramirez
                      last edited by

                      @roramirez Nice! Worked perfect. Thank you.

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

                        @roramirez said in Problem with ip whitelist:

                        Can set ipWhitelist: [] to allow all IP addresses.

                        For a novice like myself, that’s a whole lot easier than trying to figure this out:

                        ipWhitelist: ["::fff:0.0.0.0/1", "::fff:128.0.0.0/2", "::fff:192.0.0.0/3", 
                        			"::fff:224.0.0.0/4", "127.0.0.1", "::ffff:127.0.0.1", "::1"],
                        

                        :clap_tone1:

                        Create a working config
                        How to add modules

                        R 1 Reply Last reply Reply Quote 0
                        • R Offline
                          roramirez Core Contributors @Mykle1
                          last edited by

                          @Mykle1 Yes, It’s a problem I can see from a time ago. It’s difficult for some users understood rules /24 /32 /etc . I’m not saying “you go to hell because you not understand it” … generally to myself is hard identified what it is one or other. Every time I see https://en.wikipedia.org/wiki/IPv4_subnetting_reference ;)

                          I have proposed add a note
                          https://github.com/MichMich/MagicMirror/pull/759

                          In a future it should be by default.

                          Easy module development with MagicMirror Module Template

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

                            @roramirez said in Problem with ip whitelist:

                            In a future it should be by default.

                            Good idea! BTW, you all do an excellent job here and I am very grateful. Thank you. :thumbsup_tone1:

                            Create a working config
                            How to add modules

                            1 Reply Last reply Reply Quote 0

                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                            With your input, this post could be even better 💗

                            Register Login
                            • 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