• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 HowTo

Scheduled Pinned Locked Moved Tutorials
83 Posts 36 Posters 118.2k Views 34 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.
  • L Offline
    leem2000
    last edited by Jun 10, 2020, 9:48 PM

    Hi

    I recently installed MM and am viewing on screen rather than on a mirror. I’m unable to view MM in a web browser from another machine in the network. I get

    This site can’t be reached
    192.168.0.113 refused to connect.

    I’ve gone through this topic and tried the various suggestions including turning off IPv6. No joy.
    No errors or connection refused messages in the pm2 logs. I’ve run config:check and it runs clean.

    netstat -lnpt
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name 
    tcp        0      0 0.0.0.0:5900            0.0.0.0:*               LISTEN      -                
    tcp        0      0 127.0.0.1:8080          0.0.0.0:*               LISTEN      1861/electron.js 
    tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      -            
    

    I’m trying to access with http://192.168.0.113. Ssh to the pi is fine.
    Any ideas?

    L 1 Reply Last reply Jun 11, 2020, 8:53 PM Reply Quote 0
    • L Offline
      leem2000 @leem2000
      last edited by Jun 11, 2020, 8:53 PM

      Setting address: “0.0.0.0” has solved this.

      1 Reply Last reply Reply Quote 1
      • O Offline
        openPhiL
        last edited by Oct 31, 2020, 9:03 PM

        really? this topic has 63k views, so it is litterally really annoying and problematic to a lot of people.
        It is a website for a mirror, how hard do you want to make it to be set up? the website should be served to anybody who can access it. IT pros who need to secure it will be able to, without this trickery. this is bs.

        L 1 Reply Last reply Nov 2, 2020, 8:45 AM Reply Quote 0
        • L Offline
          lavolp3 Module Developer @openPhiL
          last edited by Nov 2, 2020, 8:45 AM

          @openPhiL
          Well, suggest a better solution then. Maybe in a more constructive way.
          Or just go ahead find something else.

          How to troubleshoot modules
          MMM-soccer v2, MMM-AVStock

          1 Reply Last reply Reply Quote 1
          • G Offline
            greda
            last edited by Nov 16, 2020, 3:18 PM

            Hi everybody,

            I want to connect from the outside on my maggic. I configured the config.js file like this: ipWhitelist: [“127.0.0.1”, “:: ffff: 127.0.0.1”, “:: 1”, “0.0.0.0”], // Set [] to allow all IP addresses but I don’t have remote access.
            Thank you for your help.

            S 1 Reply Last reply Nov 16, 2020, 3:56 PM Reply Quote 0
            • S Away
              sdetweil @greda
              last edited by Nov 16, 2020, 3:56 PM

              @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.

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • G Offline
                greda
                last edited by Nov 17, 2020, 9:50 PM

                @sdetweil said in ipWhitelist HowTo:

                u mean inside your home?

                Yes inside my home.

                1 Reply Last reply Reply Quote 0
                • G Offline
                  greda
                  last edited by Nov 17, 2020, 10:17 PM

                  Ok thanks it 's good now.

                  1 Reply Last reply Reply Quote 0
                  • E Offline
                    esamecar
                    last edited by Nov 11, 2022, 5:38 PM

                    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

                    S 1 Reply Last reply Nov 11, 2022, 6:45 PM Reply Quote 0
                    • S Away
                      sdetweil @esamecar
                      last edited by Nov 11, 2022, 6:45 PM

                      @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 )
                      use

                      ip 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 …

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      E 1 Reply Last reply Nov 11, 2022, 8:23 PM Reply Quote 0
                      • 1
                      • 2
                      • 5
                      • 6
                      • 7
                      • 8
                      • 9
                      • 8 / 9
                      • 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