MagicMirror² v2.5.0 is available! For more information about this release, check out this topic.

MMM Remote & MMM-Admin-Interface Error: ipwhitelist error: Access Denied Error



  • I am using RP-3. I installed both the module MMM Remote & MMM-Admin-Interface. Both are giving the same error i.e Access Denied to IP Address: 192.168.2.15

    my configuration is below:

    /* Magic Mirror Config Sample

    */

    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”, 192.168.2.1, ::ffff:192.168.2.15"], // 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: "en",
    timeFormat: 24,
    units: "metric",
    
    modules: [
    	{
    	    	module: "MMM-Admin-Interface",
    		},
    	 
    	{
    		module: "alert",
    	},
    	{
    		module: "updatenotification",
    		position: "top_bar"
    	},
    	{
    		module: "clock",
    		position: "top_left"
    	},
    	{
    		module: "calendar",
    		header: "Indian Holidays",
    		position: "top_left",
    		config: {
    			calendars: [
    				{
    					symbol: "calendar-check-o ",
    					url: "webcal://www.calendarlabs.com/ical-calendar/ics/33/India_Holidays.ics"
    				}
    			]
    		}
    	},
    	{
    		module: "compliments",
    		position: "lower_third"
    	},
    	{
    		module: "currentweather",
    		position: "top_right",
    		config: {
    			location: "Patna, India",
    			locationID: "1260086",  //ID from http://www.openweathermap.org/help/city_list.txt
    			appid: "a07381eea7234555b1f6b781545bb4d6"
    		}
    	},
    	{
    		module: "weatherforecast",
    		position: "top_right",
    		header: "Weather Forecast",
    		config: {
    			location: "Patna",
    			locationID: "1260086",  //ID from http://www.openweathermap.org/help/city_list.txt
    			appid: "a07381eea7234555b1f6b781545bb4d6"
    		}
    	},
    	{
    		module: "newsfeed",
    		position: "bottom_bar",
    		config: {
    			feeds: [
    				{
    					title: "Times Of India",
    					url: "https://timesofindia.indiatimes.com/rssfeedstopstories.cms"
    				}
    			],
    			showSourceTitle: true,
    			showPublishDate: true
    		}
    	},
    ]
    

    };

    /*************** DO NOT EDIT THE LINE BELOW ***************/
    if (typeof module !== “undefined”) {module.exports = config;}

    **Any Help will be greatly appreciated.

    Thanks in advance**



  • It doesn’t look like you have any IPs specifically whitelisted… you have to change your line:

    //ipWhitelist: [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”, 192.168.2.1, ::ffff:192.168.2.15"], // Set [] to allow all IP addresses

    To something like this:

    ipWhitelist: [“127.0.0.1”, “192.168.2.15"], // Set [] to allow all IP addresses

    So basically uncomment the line and make sure to add your IP. You may want to just whitelist the entire subnet, to do that you would add "192.168.2.0/24"