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.

    Ip whitelist

    Scheduled Pinned Locked Moved Tutorials
    4 Posts 2 Posters 3.3k Views 2 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.
    • HrierebH Offline
      Hriereb
      last edited by

      Re: ipWhitelist HowTo

      Hi all,
      I apologize if I make silly questions but I’m completely new in this fantastic world.
      I installed my magic mirror and I’m tried to customize it following my tastes. I installed the MMremote module but I cannot set the right ip in the whitelist. I tried several times to access, through a tablet and a laptop, but every time I get the refused access error.
      My Pi ip address is 192.168.188.52
      my laptop ipv4 is 192.168.188.32
      my tablet ip is 192.168.188.28
      I tired to edit this ips to the whitelist but nothing happens.
      Can someone help me?
      Since I made some mistake I resumed the default configuration.

      /* Magic Mirror Config Sample
       *
       * By Michael Teeuw http://michaelteeuw.nl
       * MIT Licensed.
       *
       * For more information how you can configurate this file
       * See https://github.com/MichMich/MagicMirror#configuration
       *
       */
      
      var config = {
      	address: "0.0.0.0", // Address to listen on, can be:
      	                      // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
      	                      // - another specific IPv4/6 to listen on a specific interface
      	                      // - "", "0.0.0.0", "::" to listen on any interface
      	                      // Default, when address config is left out, is "localhost"
      	port: 8080,
      	ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
      	                                                       // 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"],
      	                                                       // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
      	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
      
      
      	language: "it",
      	timeFormat: 24,
      	units: "metric",
      
      	modules: [
      		
                      {       
                              module: "alert",
      		},
                      {
                              module: 'MMM-Remote-Control',
                              // uncomment the following line to show the URL of the remote control on the mirror,
                              position: 'bottom_right',
                              // you can hide this module afterwards from the remote control itself
                      },
      
      
      
      		{
      			module: "calendar",
      			header: "MyTab",
      			position: "bottom_left",
      			config: {
      				calendars: [
      					{
      						symbol: "angellist",
      						url: "https://calendar.google.com/calendar/ical/XXX.com/private-bfa9ee5d1713d4d59c9c662e4b0aa959/basic.ics"
      					}
                      
      				]
      			}
      		},
                      {
                              module: 'persistent_config_interface'
                      },
                      
      	]       
      
      };
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== "undefined") {module.exports = config;}
      
      
      Mykle1M 1 Reply Last reply Reply Quote 0
      • Mykle1M Offline
        Mykle1 Project Sponsor Module Developer @Hriereb
        last edited by

        @hriereb said in Ip whitelist:

        ipWhitelist: [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”],

        I just whitelist all of the devices on my network by changing to this at the beginning of my config.

        ipWhitelist: [],

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 1
        • HrierebH Offline
          Hriereb
          last edited by

          Thank you so much, your advise was really precious.

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

            @hriereb

            You’re welcome, mate. :-)

            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